Sharing a C++ solution between Visual Studio 2010 and 11

记录同时安装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

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. 


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值