记录同时安装vs2010,vs2012之后出现的问题解决方法。
原址:http://stackoverflow.com/questions/10245771/sharing-a-c-solution-between-visual-studio-2010-and-11
为防止原址的文章丢失,同时复制如下:
"Error 31 error MSB8008: Specified platform toolset (v110) is not installed or invalid. Please make sure that a supported PlatformToolset value is selected.
also, in header files i get the following error on #include <stdio.h>
:
error: cannot open source file "stdio.h""
方法:
In Visual Studio 11 there is a property option that allows you to specify the platform toolset.
Platform Toolset v110 is used by default if you create a new project starting from Visual Studio 11, but if can change it to v100 that is the one used by Visual Studio 2010.
![Toolset option](http://i.stack.imgur.com/JRn2s.jpg)
When you open an existing 2010 project in VC++ 2012 for the first time, it will "helpfully" set the platform toolset to v110. That's how I got to this Q and A on Stackoverflow - trying to figure out how VC++ 2012 broke my project despite advertizing a "seamless round trip." The error message only told me to specify the correct platform toolset without giving any indication as to what that means or how to specify it. Of course the Microsoft documentation was useless. But googling on good old DuckDuckGo.com and clicking on the Stackoverflow hit saved the day.