1. 程式人生 > 實用技巧 >成功解決MSB8020 The build tools for v141 (Platform Toolset = ‘v141‘) cannot be found. To build using the

成功解決MSB8020 The build tools for v141 (Platform Toolset = ‘v141‘) cannot be found. To build using the

成功解決MSB8020 The build tools for v141 (Platform Toolset = 'v141') cannot be found. To build using the

目錄

解決問題

解決思路

解決方法


解決問題

MSB8020 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". ChineseSimplified C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.Platform.targets 57

解決思路

MSB8020找不到v141(平臺工具集=“v141”)的生成工具。要使用v141構建工具進行構建,請安裝v141構建工具。或者,您可以通過選擇“專案”選單或右鍵單擊解決方案,然後選擇“重定目標解決方案”,升級到當前的Visual Studio工具\微軟.Cpp\v4.0\V140版本\Microsoft.Cpp.平臺目標57

解決方法

出現這個問題,可知,你想要構建的專案來自VS2017,其C ++ ToolSet是V141。當然,我們也可以選擇在VS2019中安裝ToolSet V141。在VS2019中,去工具=>獲取工具和功能=>安裝VS2017的C ++構建工具。

注意:VS 2015平臺工具集為v140,VS 2017平臺工具集為v141,VS2019平臺工具集為V142。

找不到<platform>(平臺工具集 =“<version>”)的生成工具。 若要使用<version>生成工具進行生成,請安裝<platform>生成工具。 或者,可以通過選擇“專案”選單或右鍵單擊解決方案升級到當前 Visual Studio 工具,然後選擇“重定解決方案目標”。