【发布时间】:2015-11-11 03:27:32
【问题描述】:
开始情况: TFS 2013 构建机器(代理),安装了 VS2013。这成功构建了我的解决方案。
之后: 我已将我的解决方案中的项目升级为 VS2015 项目,即使用 v14.0 平台工具集。该解决方案使用 VS2015 在本地构建,没有任何问题。 我已经在构建代理上安装了 VS2015。
构建代理现在无法构建解决方案,说
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.targets (64): The build tools for v140 (Platform Toolset = 'v140') cannot be found. To build using the v140 build tools, please install v140 build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Upgrade Solution...".
我曾尝试自定义构建模板,将 MSBuild 中的 ToolVersion 设置为 "14.0",结果相同。
有什么想法吗?
【问题讨论】:
-
顺便说一句,我现在正在尝试在构建代理上卸载 VS2013 - 不过这需要很长时间。然而,即使这有帮助,它也不是问题的最终解决方案——我也需要那个代理来构建 VS2013 项目。
-
好的,卸载VS2013后,我遇到了另一个问题:找不到导入的项目“C:\Microsoft.Cpp.Default.props”。确认
声明中的路径正确,并且该文件存在于磁盘上。我已经设法通过手动将构建配置中的 MSBuild 参数设置为“ /p:VCTargetsPath="C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140" ”来解决这个问题。我相信这在我安装了 VS2013 时也会有所帮助。
标签: visual-studio-2013 tfs msbuild visual-studio-2015