我已将 VS2008 解决方案迁移到 VS2013。我的解决方案包含 VC++ 项目。 我已将每个项目的工具平台设置为 v120_xp 我的解决方案在我的计算机上编译并在 VS2013 中的构建服务器上编译 我的构建服务器是 Windows2008 R2,带有 VS2008、VS2010 和 VS2013 以及 TeamFoundationServer 2010 的构建 Controller 。
当我使用构建 Controller 启动构建时,构建失败并显示:
The imported project "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk.
在 V110 目录中该文件不存在,但在 V120 目录中存在。 我已经检查过注册表: HKLM\SOFTWARE\Microsoft\MSBuild\ToolsVersion\12.0 VCTargetPath 是正确的
你有什么办法可以帮助我吗?
最佳答案
我已经编辑了注册表项
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\MSBuild\ToolsVersions\12.0\11.0
和
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\12.0\11.0
使用V120目录
现在我的服务器构建了解决方案,但我不明白为什么 MSBuild 使用 key
ToolsVersions\12.0\11.0
而不是 key ToolsVersions\12.0\12.0
也许是由于 v120_xp 平台工具集所致
关于tfs - 错误: The imported project "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.Cpp.Default.props" was not found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22229548/