如何将VS2015工程转换成VS2012工程 修改.vcxproj, 1.修改工具集 ToolsVersion=14.0 修改为 ToolsVersion=4.0 2.修改平台工具集 <PlatformToolset>v140</PlatformToolset> 为 <PlatformToolset>v110</PlatformToolset> 3.修改头包含目录 IncludePath 项目修改为 <IncludePath>$(VCInstallDir)include;$(VCInstallDir)atlmfc\include;$(WindowsSDK_IncludePath);</IncludePath> 如果还有你自定义的头包含,请添加

  1. 修改库目录(可能不是必须的) <LibraryPath>$(VCInstallDir)lib;$(VCInstallDir)atlmfc\lib;$(WindowsSDK_LibraryPath_x86);$(VCInstallDir)lib;$(VCInstallDir)atlmfc\lib;$(WindowsSDK_LibraryPath_x86);</LibraryPath>

一些参考 MS VC++ 14.0 _MSC_VER = 1900(VS2015)   MS VC++ 12.0 _MSC_VER = 1800(VS2013)   MS VC++ 11.0 _MSC_VER = 1700(VS2012) MS VC++ 10.0 _MSC_VER = 1600(VS2010)   MS VC++ 9.0 _MSC_VER = 1500(VS2008)   MS VC++ 8.0 _MSC_VER = 1400(VS2005)   MS VC++ 7.1 _MSC_VER = 1310(VS2003)   MS VC++ 7.0 _MSC_VER = 1300   MS VC++ 6.0 _MSC_VER = 1200   MS VC++ 5.0 _MSC_VER = 1100