【发布时间】:2018-06-07 20:55:35
【问题描述】:
当我尝试编译一些 C++ 代码时出现错误
Code:
MSB8020
Description:
The build tools for v150 (Platform Toolset = 'v150') cannot be found.
To build using the v150 build tools, please install v150 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 "Retarget solution".
我无法选择“重定向解决方案”,因为没有。
我打开了 Visual Studio 安装程序,但最新的工具集有 141 个。
如何降级构建工具要求或如何“重新定位解决方案”?
TL;DR
我通过编译Autohotkey_L 遇到了这种情况。通过安装 HyperV 虚拟机并下载 Microsoft 提供的开发机器,我做到了完全干净。它已经包含一个 Visual Studio 2017 社区版。没有比这更干净或更最新的了。
【问题讨论】:
-
要更准确地了解@HaveSpacesuit 的答案,请转至the answer。或者更确切地说,这个问题的答案。
标签: visual-c++ autohotkey