问题描述
朋友们好,
我正在尝试构建一个项目,我无法构建在Visual Studio 2013或2015中创建的C ++项目,我收到此错误:
I am Trying to build a project, I can't build C++ projects that were created in Visual studio 2013 or 2015, I get this Error:
错误 MSB8020 找不到v141(Platform Toolset ='v141')的构建工具。要使用v141构建工具进行构建,请安装v141构建工具。 或者,您可以通过选择Project
菜单升级到当前的Visual Studio工具,或者右键单击解决方案,然后选择"重新定位解决方案"。 项目名称C:\Program Files(x86)\ Microsoft Visual Studio \\\ 2017 \ Communmunity \Common7 \IDE \VC \ VCTargets \ Microsoft.Cpp.Platform.targets 57
Error 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". Project name C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Cpp.Platform.targets 57
安装Visual Studio 2017 RC后,我收到一条消息,说明未安装Windows 10 SDK:[0cfc:001f] [2016-12-09T04:19:02包'Win10SDK_10.0.14393.33,版本= 10.0.14393.3300'无法安装。执行的命令:"C:\ProgramData \ Microsoft &\\VisualStudio \Packages \Win10SDK_10.0.14393.33,version = 10.0.14393.3300\packages \Win10SDK \10.0.14393.33 \sdksetup.exe"
/ features OptionId.WindowsSoftwareDevelopmentKit OptionId.WindowsSoftwareLogoToolkit OptionId.NetFxSoftwareDevelopmentKit / quiet / norestart / OriginalSource" C:\ VSS2017\packages\Win10SDK\10.0.14393.33\sdksetup.exe" ;,返回代码:15605 ,详细信息:
下载产品时出现问题。
After installing Visual Studio 2017 RC I got a message that the windows 10 SDK wasn't installed: [0cfc:001f][2016-12-09T04:19:02] Package 'Win10SDK_10.0.14393.33,version=10.0.14393.3300' failed to install. Command executed: "C:\ProgramData\Microsoft\VisualStudio\Packages\Win10SDK_10.0.14393.33,version=10.0.14393.3300\packages\Win10SDK\10.0.14393.33\sdksetup.exe" /features OptionId.WindowsSoftwareDevelopmentKit OptionId.WindowsSoftwareLogoToolkit OptionId.NetFxSoftwareDevelopmentKit /quiet /norestart /OriginalSource "C:\VS2017\packages\Win10SDK\10.0.14393.33\sdksetup.exe", Return code: 15605, Details: There was a problem downloading your product.
我正在使用已连接的ISO映像安装VS,同时使用电缆连接到路由器(尝试消除WIFI问题)。 Win 10 SDK是否与C ++工具相关?我怎样才能建立它?
I was installing VS from an ISO image that i've downloaded while connected with a cable to the router (tried to eliminate WIFI issues). Is the Win 10 SDK related to the C++ tools? how can I get it to build?
我已经上传了我的Visual Studio安装日志,它们是:https://1drv.ms/u/s!ArdaoXN9TFnsao8uvnWxXLEuyIg
I have uploaded the logs of my Visual Studio installation, here they are: https://1drv.ms/u/s!ArdaoXN9TFnsao8uvnWxXLEuyIg
我必须尽快解决这个问题,我正在安装Windows 7和10以及2015年和2017年的视觉工作室并尝试维修10天!!!
I have to solve this issue ASAP, I was installing windows 7 and 10 and visual studio 2015 and 2017 and trying repairs for 10 days!!!
谢谢,
Roy。
Roy.
推荐答案
感谢您在MSDN论坛上发帖。
Thank you for posting in MSDN forum.
您已将Win 7升级到Win 10,并安装了VS 2015和2017,对吧?
You have upgrade the Win 7 to Win 10, and installed both VS 2015 and 2017,right?
确保已使用C ++安装了Desktop开发。
Make sure you have installed the Desktop development with C++.
> ;> Win 10 SDK与C ++工具有关吗?
Windows 10 SDK(版本10.0.14393.0)提供了用于构建Windows 10应用程序的最新标头,库,元数据和工具。并且它不包含在VS ISO映像中。
The Windows 10 SDK (ver. 10.0.14393.0) provides the latest headers, libraries, metadata and tools for building Windows 10 apps. and it's not included in VS ISO image.
如果有必要,我建议您使用/ layout命令,如下所示:
If necessary, I suggest you use /layout command as below:
1.Run the在命令提示符处执行以下命令:< executable name> / layout。
此命令下载安装的所有软件包。请参阅以下内容:
1.Run the following command at a command prompt: <executable name> /layout.
This command downloads all the packages for the installation. see as below:
2.运行该命令后,系统将提示您输入下载位置。输入位置,然后选择下载。
2.After you run the command, you should be prompted for the download location. Enter the location, and then choose Download.
3.当包下载成功时,您应该看到一个Visual Studio屏幕,其中显示Setup Successful如下所示:
3.When the package download is successful, you should see a Visual Studio screen that says Setup Successful as below:
4。在您指定的文件位置中,找到可执行文件和包文件夹。这是复制到共享位置或安装媒体所需的一切。
4. In the file location that you specified, find the executable file and the package folder. This is everything you need to copy to a shared location or install media.
您现在可以从文件位置或安装媒体运行安装。
You can now run the installation from the file location or the install media.
请将/ layout Win 10 sdk安装程序和VS ISO映像移动到其他位置,空目录,再次安装。
Please move the /layout Win 10 sdk installer and VS ISO image to a different, empty directory, install them again.
如果执行上述操作后错误仍然存在,请随时告诉我,我会帮您分析更多。
If the error still persists after doing the above, please feel free to let me know, I will help you to analyze more.
最好的问候
这篇关于错误MSB8020无法找到v141(Platform Toolset ='v141')的构建工具 - 2017 Community RC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!