当我尝试编译一些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虚拟机并下载微软提供的开发机器,我完全干净了。它已包含Visual Studio 2017社区版。它不能变得更干净或更新。