VS2013下開發VC++程序,編譯時提示錯誤error MSB8020: The build tools for v140 (Platform Toolset = 'v140') 的解決方案


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版本的平台工具集;如下圖所示:

 

OK搞定!


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM