本人在使用VS2013编译VS2012的project遇到如下问题:
问题原句为:“1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.targets(64,5): error MSB8020: The build tools for Visual Studio 2012 (Platform Toolset = 'v110') cannot be found. To build using the v110 build tools, please install Visual Studio 2012 build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Upgrade Solution...".”
VS2013的平台工具集为V120,VS2012的平台工具集为V110,此时需要修改平台的平台工具集。
步骤如下:
1、点击“视图”-“属性管理器”
2、在属性管理器里,右键点击项目,在跳出的选项栏里选择“属性”。
3、在项目属性页里,点击“配置属性”-“常规”-“平台工具集”,选择适合你正在使用的VS版本,点击“确认”。
至此,解决问题。
本文由VS软件圈(vssoft.net)发布,不代表VS软件圈立场,转载联系作者并注明出处:https://vssoft.net/vsazwt/VS2012anzhuangwenti/2020/0725/5089.html