在Visual Studio 2010和11之间共享C ++解决方案
我和我的伴侣都通过颠覆共享了一个c ++解决方案.
Me and my partner are both sharing a c++ solution via subversion.
他正在使用Visual Studio 11,而我正在使用Visual Studio 2010.
He is using Visual Studio 11 and I am using Visual Studio 2010.
他第一次提交并更新后,出现以下错误:
After the first time he commited and i updated, i get the following error:
Error 31 error MSB8008: Specified platform toolset (v110) is not installed or invalid. Please make sure that a supported PlatformToolset value is selected.
另外,在头文件中,我在#include <stdio.h>
上收到以下错误:
also, in header files i get the following error on #include <stdio.h>
:
error: cannot open source file "stdio.h"
我猜这是兼容性问题.我们该如何解决?
I am guessing this is a compatibility issue. How can we resolve this?
在Visual Studio 11中,有一个属性选项可让您指定平台工具集.
In Visual Studio 11 there is a property option that allows you to specify the platform toolset.
默认情况下,如果从Visual Studio 11开始创建新项目,则使用平台工具集v110,但是如果可以将其更改为Visual Studio 2010使用的v100,则为
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.