Windows10 SDK 10.01.14393安装问题

Windows 10 SDK 10.01.14393 installation problems

我全新安装windows 10 家庭版,然后开始安装Visual Studio 2017 社区版。

我只select通用windows平台开发、.net桌面开发和asp.net网络开发但"setup completed with warnings"。

我想分享上面的日志文件。

你对这个问题有什么想法吗?

我也向 Microsoft Community 问过这个问题,但没有人回答。

The product failed to install the listed workloads and components due to one or more package failures.

Incomplete workloads
    Universal Windows Platform development (Microsoft.VisualStudio.Workload.Universal,version=15.0.26206.0)

Incomplete components
    Universal Windows Platform tools (2.0) (Microsoft.VisualStudio.Component.UWP.Support,version=15.0.26206.0)
    Universal Windows Platform tools for Cordova (2.0) (Microsoft.VisualStudio.ComponentGroup.UWP.Cordova,version=15.0.26206.0)
    Universal Windows Platform tools for Xamarin (2.0) (Microsoft.VisualStudio.ComponentGroup.UWP.Xamarin,version=15.0.26206.0)
    Windows 10 SDK (10.0.14393.0) (Microsoft.VisualStudio.Component.Windows10SDK.14393,version=15.0.26127.0)

You can search for solutions using the information below, modify your selections for the above workloads and components and retry the installation, or remove the product from your machine.

Following is a collection of individual package failures that led to the incomplete workloads and components above. To search for existing reports of these specific problems, please copy and paste the URL from each package failure into a web browser. If the issue has already been reported, you can find solutions or workarounds there. If the issue has not been reported, you can create a new issue where other people will be able to find solutions or workarounds.

Package 'Win10SDK_10.0.14393.795,version=10.0.14393.79501' failed to install.
    Search URL: https://aka.ms/VSSetupErrorReports?q=PackageId=Win10SDK_10.0.14393.795;PackageAction=Install;ReturnCode=-2146889721
    Impacted workloads
        Universal Windows Platform development (Microsoft.VisualStudio.Workload.Universal,version=15.0.26206.0)
    Impacted components
        Universal Windows Platform tools (2.0) (Microsoft.VisualStudio.Component.UWP.Support,version=15.0.26206.0)
        Universal Windows Platform tools for Cordova (2.0) (Microsoft.VisualStudio.ComponentGroup.UWP.Cordova,version=15.0.26206.0)
        Universal Windows Platform tools for Xamarin (2.0) (Microsoft.VisualStudio.ComponentGroup.UWP.Xamarin,version=15.0.26206.0)
        Windows 10 SDK (10.0.14393.0) (Microsoft.VisualStudio.Component.Windows10SDK.14393,version=15.0.26127.0)
    Log
        C:\Users\emrek\AppData\Local\Temp\dd_setup_20170307010944_177_Win10SDK_10.0.14393.795.log
    Details
        Command executed: "c:\windows\syswow64\windowspowershell\v1.0\powershell.exe" -NoLogo -NoProfile -ExecutionPolicy Unrestricted -InputFormat None -Command "& """C:\ProgramData\Microsoft\VisualStudio\Packages\Win10SDK_10.0.14393.795,version=10.0.14393.79501\WinSdkInstall.ps1""" -SetupExe sdksetup.exe -SetupLogFolder standalonesdk -PackageId Win10SDK_10.0.14393.795 -LogFile """C:\Users\emrek\AppData\Local\Temp\dd_setup_20170307010944_177_Win10SDK_10.0.14393.795.log""" -SetupParameters """/features OptionId.AvrfExternal OptionId.WindowsSoftwareDevelopmentKit OptionId.WindowsSoftwareLogoToolkit OptionId.NetFxSoftwareDevelopmentKit /quiet /norestart"""; exit $LastExitCode"
        Return code: -2146889721
        Return code details: The hash value is not correct.

我通过vpn连接解决了这个问题。 如果您在安装 visual studio 2017 或 windows 10 sdk 时遇到任何问题,请尝试连接 vpn 并继续进行。 我不知道为什么会出现这种情况,但您可以通过 vpn 连接到网络来解决此问题。

在我的案例中,损坏的文件导致了该错误。我手动 deleted C:\ProgramData\Microsoft\VisualStudio\Packages\Win10SDK_10.0.19041,version=10.0.19041.1 (或者你的windowsSDK版本) 文件夹,然后在 Visual Studio 2022 安装程序中选择修改选项,并从 modify 按钮旁边的下拉菜单中选择 下载后安装 (左右)。

不删除就不行

另外 暂时关闭 Defender。然后,如果一切都解决了,请将其打开 again.There 文件夹访问可能会出现问题。好像。