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搞定!
