【发布时间】:2013-11-17 00:57:55
【问题描述】:
在 Windows 8 x64 上使用 Visual Studio 2012 显然这是由于 msbuild 被移到 .net 中造成的,但我还没有看到如何修复它。
4>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.Cpp.Platform.targets(44,5): error MSB8020: The builds tools for v120 (Platform Toolset = 'v120') cannot be found. To build using the v120 build tools, either click the Project menu or right-click the solution, and then select "Update VC++ Projects...". Install v120 to build using the v120 build tools.
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.Cpp.Platform.targets(44,5):
error MSB8020: The builds tools for v120 (Platform Toolset = 'v120') cannot be found. To build using the v120 build tools, either click the Project menu or right-click the solution, and then select "Update VC++ Projects...". Install v120 to build using the v120 build tools.
5>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.Cpp.Platform.targets(44,5): error MSB8020: The builds tools for v120 (Platform Toolset = 'v120') cannot be found. To build using the v120 build tools, either click the Project menu or right-click the solution, and then select "Update VC++ Projects...". Install v120 to build using the v120 build tools.
【问题讨论】:
-
CLI 提示:要使用首选
PlatformToolset构建任何解决方案,您可以像这样覆盖它(VS2013):"\Program Files (x86)\MSBuild\12.0\Bin\MSBuild" .\path\to\MySolution.sln /p:PlatformToolset=v120(如果您在 PowerShell 中,请将&放在\Progr..之前) .对于VS2015,它将变为"\Program Files (x86)\MSBuild\14.0\Bin\MSBuild"和/p:PlatformToolset=v140等等。
标签: visual-studio msbuild