C++报错:The build tools for v141 (Platform Toolset = 'v141') cannot be found.

【问题内容】

The build tools for v141 (Platform Toolset = 'v141') cannot be found. To build using the v141 build tools, please install v141 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 "Retarget solution".   

【问题分析】

Visual Studio 2015 编辑错误,是缺少了v141组件
【解决方法】
项目-->属性--->常规-->平台工具集--->选择 Visual Studio 2015 (v140),或者Visual Studio 2015 - Windows XP (v140_xp)确定,就OK

猜你喜欢

转载自blog.csdn.net/shuiyixin/article/details/80709408