1. 问题描述:

提示如下错误:error MSB8020: The builds tools for v140 (Platform Toolset = 'v140') cannot be found. To build using the v140 build tools, either click the Project menu or right-click the solution, and then select "Update VC++ Projects...". Install v140 to build using the...

2. 问题分析:

造成该问题的原因是所用VS版本平台集不一致导致,更改为本机所用VS平台版本集即可;

3. 解决方案:

  将 "项目——属性——配置属性——常规——平台工具集” 选项更改为你所用的VS版本平台集的选项即可,如我这里用的是VS2013,便将其更改为v120的,v140应为VS2015/2017版本的平台工具集;如下图所示:

 VS2013下开发VC++程序,编译时提示错误error MSB8020: The build tools for v140 (Platform Toolset = 'v140') 的解决方案

OK搞定!

相关文章:

  • 2021-08-18
  • 2022-12-23
  • 2021-09-27
  • 2021-11-28
  • 2021-06-28
  • 2021-11-25
  • 2021-10-07
猜你喜欢
  • 2021-10-27
  • 2021-11-17
  • 2022-12-23
  • 2021-04-09
  • 2021-11-13
  • 2021-10-04
  • 2022-12-23
相关资源
相似解决方案