【发布时间】:2014-07-16 16:30:21
【问题描述】:
您好,我有一个解决方案(VS2013,vc++),它有 4 个项目(*.vcproj)& 他们每个人都是一个EXE项目。这是保存在非源版本中 我的win8机器中的控制位置::说 "文档/NoSourecControlFolder/"
这里的所有项目都可以正常编译。
现在,我从非源版本控制中移动了这个“”文件夹 位置到源版本控制位置“perforce”说“ Documents/P4_workspaces/WorkspaceABC/"。
我看到这个 *.sln 中的 4 个项目中的 1 个项目编译不正常。
相反,它会引发这样的错误,甚至不开始编译::
1>------ Rebuild All started: Project: ProectABC, Configuration: Release Win32 ------
1>C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(4341,5): error MSB3491: Could not write lines to file "Release\ProectABC.vcxproj.FileListAbsolute.txt". 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.
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
错误表明文件名太长,但同一个项目在另一个非源代码控制位置编译得非常好。我也没有在任何地方找到这个文件“Release\ProectABC.vcxproj.FileListAbsolute.txt”。
参考此链接后,我得到一个提示,这与文件位置的更改有关。 Link
任何帮助都会非常有帮助。谢谢。
【问题讨论】:
-
您保存 vcproj 文件的位置(在源代码管理下)的路径长度是多少?我的猜测是,它太大了,VS 2013 无法处理。
-
路径长度只有 169 个字符。
标签: c++ visual-studio visual-c++ compiler-errors source-control-bindings