cli*_*hax 102 msbuild visual-studio
在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.
Run Code Online (Sandbox Code Playgroud)
Kev*_*son 84
如果您安装了VS2013并且收到此错误,则可能是在调用错误的MSBuild.借助VS2013,Microsoft现在将MSBuild作为Visual Studio的一部分.有关详细信息,请参阅此Visual Studio博客文章.
特别要注意二进制文件的新位置:
在32位计算机上,可以找到它们:C:\ Program Files\MSBuild\12.0\bin
在64位计算机上,32位工具将位于:C:\ Program Files(x86)\ MSBuild\12.0\bin
以及64位工具:C:\ Program Files(x86)\ MSBuild\12.0\bin\amd64
MSBuild in %WINDIR%\Microsoft.NET\Framework\
似乎无法识别VS2013(v120)平台工具集.
Lex*_* Li 73
http://en.wikipedia.org/wiki/Visual_C++
您使用的是Visual C++ 2012,即v110.v120表示Visual C++ 2013.
因此,要么将项目设置更改为使用工具集v110,要么在此计算机上安装Visual Studio 2013并使用VS2013进行编译.
Kim*_*Won 14
从http://www.microsoft.com/en-US/download/details.aspx?id=40760下载并设置Microsoft Build Tools 2013
加起来凯文和莱克斯的答案:
在开发人员和构建服务器都有Visual Studio 2013的情况下,我们遇到了类似的情况.我们的解决方案有一个VS 2013 C++项目,并且在构建于开发人员的机器或IDE内的构建服务器上时编译得很好.问题是使用TFS构建定义触发构建时.我们仍在使用旧的构建模板(版本11.1)而不是12.0.幸运的是,模板xaml文件的一个简单属性添加解决了这个问题.在序列部分"编译项目"中,有一个以...开头的xaml节点
mtbwa:MSBuild CommandLineArgument=....
Run Code Online (Sandbox Code Playgroud)
您可以添加"ToolPath"属性,并根据Kevin的回答将其指向您要调用的MSBuild.exe的正确路径.例如:
ToolPath="C:\Program Files (x86)\MSBuild\12.0\Bin"
Run Code Online (Sandbox Code Playgroud)
在这上面浪费了 4 个多小时。
我有Visual Studio 2017 Enterprise,其中一个项目有以下错误:
找不到 v120 的构建工具(平台工具集 = 'v120')
为了解决上述错误,我尝试安装以下所有内容:
然而,以上都没有奏效。
后来,安装了Visual Studio 2013 Ultimate,然后一切正常。
看起来,必须使用较旧的 Visual Studio 来解决此问题。
希望能帮助到你。
归档时间: |
|
查看次数: |
242249 次 |
最近记录: |