Visual Studio 2008 References too long?

后端 未结 2 1717
再見小時候
再見小時候 2021-01-14 06:41

I have recently re-organised our source control and found one of our solutions no longer builds. The only error that we get is:

Error 65 Unknown bui

2条回答
  •  温柔的废话
    2021-01-14 07:08

    You also need to consider the "backdrop" files for SVN.

    While I might have a short file name like this: c:\myfolder1\myfolder2\MyFile.txt

    There is probably lurking somewhere a longer file name version like this: c:\myfolder1\myfolder2.svn\text-base\MyFile.txt.svn-base

    And that backdrop file is the one that gets the "way too long" error.

    Here is what I get via CCNET (calling a MSBUILD file) using SVN source control. Specific names removed to protect the innocent. (And my job!)

    Please note that this "name massaging" results in shorter paths that probably would not generate the errors. Aka, don't count the number of characters in my massaged examples. But the error messages are what I was getting.

        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.
    

提交回复
热议问题