你还需要考虑 SVN 的“背景”文件。
虽然我可能有一个像这样的短文件名:
c:\myfolder1\myfolder2\MyFile.txt
但很可能潜伏着一个更长的文件名版本,如下所示:
c:\myfolder1\myfolder2.svn\text-base\MyFile.txt.svn-base
而那个背景文件就是会出现“太长”的错误。
以下是我通过使用 SVN 源代码控制调用 MSBUILD 文件时通过 CCNET 得到的结果。
为了保护无辜者(和我的工作!),特定名称已被删除。
请注意,这种“名称处理”会导致较短的路径,可能不会生成错误。也就是说,不要计算我处理后示例中的字符数。
但错误消息就是我得到的。
Removing directory "C:\CCNETEnvironment\MyFolder2\MyProject\working\checkout".
C:\src\MyFolder1\MyProject\My_MSBuild.xml(173,5): error MSB3231: Unable to remove directory "prop-base". The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.
C:\src\MyFolder1\MyProject\My_MSBuild.xml(173,5): error MSB3231: Unable to remove directory "text-base". The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.
C:\src\MyFolder1\MyProject\My_MSBuild.xml(173,5): error MSB3231: Unable to remove directory "prop-base". The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.
C:\src\MyFolder1\MyProject\My_MSBuild.xml(173,5): error MSB3231: Unable to remove directory "text-base". The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.
C:\src\MyFolder1\MyProject\My_MSBuild.xml(173,5): error MSB3231: Unable to remove directory "C:\CCNETEnvironment\MyFolder2\MyProject\working\checkout". Could not find a part of the path 'MyFile.txt.svn-base'.
Done building target "Clean" in project "My_MSBuild.xml" -- FAILED.
.cpp
文件。 - GManNickG