错误提示:
error MSB8020: The build tools for v140 (Platform Toolset = 'v140') cannot be found. To build using the v140 build tools, please install v140 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...".
错误原因:低版本的vs编译高版本的代码会出现这个错误。
解决方法:

将配置属性中的平台工具设置为相应的vs版本即可。
编译成功截图:

温馨提示:微信扫码关注我们:跟着数理化走天下
获得更多的信息哦,一起交流,一起成长哦:微信号:跟着数理化走天下,纯属个人的交流,无盈利目的


本文详细解析了错误MSB8020:找不到v140构建工具的问题,常见于低版本VS尝试编译高版本代码。提供了解决方案:调整配置属性中的平台工具设置,确保与VS版本一致。
1462

被折叠的 条评论
为什么被折叠?



