Visual Studio wants to build with wrong platform toolset

六月ゝ 毕业季﹏ 提交于 2019-12-04 23:44:50

The project is set to build with VS2010 compilers (platform toolset). You might have uninstalled VS2010 and got this error.

You can change the platform toolset in project properties->General->Platform Toolset. Change it Visual Studio 2012.

Same error for me recently with VS2017.

Turned out the solution was merely missing a dependent project.
If this is the cause, you should see something like:

Done building project "someproject.vcxproj" -- FAILED.  

on the next line after the error message:

error MSB8020: The build tools for Visual Studio 2010 (Platform Toolset = 'v100') cannot be found.

This error can be confusing since your projects may have already been retargeted.

Under "C/C++", there was a lib in "Additional include directories". I did not use this lib, but it was referenced. I removed this lib.

I also deleted all "studio 2010" entries in the registry.

I know this is an old thread, but perhaps this might help somebody else who comes here because of similar issues.

I had a similar problem. VS 2015 Community (MSBuild 14) building a c++ app, wanted to use VS 2010 (v100) tools. It all came down giving msbuild an invalid configuration option. Strange.

So, recheck all those options and parameters.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!