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...ui
2. 問題分析:orm
形成該問題的緣由是所用VS版本平臺集不一致致使,更改成本機所用VS平臺版本集便可;blog
3. 解決方案:it
將 "項目——屬性——配置屬性——常規——平臺工具集」 選項更改成你所用的VS版本平臺集的選項便可,如我這裏用的是VS2013,便將其更改成v120的,v140應爲VS2015/2017版本的平臺工具集;以下圖所示:io
OK搞定!form