【发布时间】:2014-03-01 18:29:15
【问题描述】:
我刚刚格式化了 PC 并安装了 Visual Studio 2013。现在,我想编译一个 Visual Studio 2010 C++ 解决方案而不进行转换,并继续针对 v100 平台工具集。
我得到这个错误:
error MSB8020: The build tools for Visual Studio 2010 (Platform Toolset = 'v100') cannot be found. To build using the v100 build tools, please install Visual Studio 2010 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...". C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.targets 64 5 TPC30004
我看到项目属性当然错过了所需的工具集。
我无法更改目标,因为无法强制 XP 用户安装新的 C++ 2013 可重新分发,所以我可能应该安装 Visual Studio 2010 来解决问题,但如果可能的话,我想避免它(小型 SSD 在当下,没有太多可用空间)。
还有其他选择吗?
【问题讨论】:
-
我猜问题是缺少
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V100。在我的机器上也一样。尝试安装Multi-Targeting Pack for Microsoft .NET Framework 4.0.3 (KB2600213),但没有帮助。仍然希望我可以避免安装 VS 2010 或将应用程序迁移到框架的更新版本。