How do I install Windows 10 SDK for use with Visual Studio 2017
Asked Answered
T

2

65

I can't figure out how to install Windows 10 SDK for Visual Studio 2017.

I downloaded and ran the Windows 10 SDK installer, and it displays Please find winsdksetup.exe in ....\Windows kits\10\WindowsSDK to install Windows Software Development Kit - Windows 10.0.17134.12.

When I run winsdksetup.exe, it takes me through the same loop, where it downloads a bunch of executable installers into this directory and show the same exact message.

When I try to build a DirectX project in VS2017, I get the error:

MSB8036 The Windows SDK version 10.0.16299.0 was not found. Install the required version of Windows SDK or change the SDK version in the project property pages or by right-clicking the solution and selecting "Retarget solution".    

Do I need to install one of those installers? Which one do I need to run to build and debug DirectX projects for Visual Studio? Specifically to use VS2017 shader debugging functionality.

Thanks,

EDIT: Under VS2017 - Tools -> Get Tools and Features I have checked

Game Development with C++

and under Optional I have

C++ Profiling tools Windows 10 SDK (10.0.17134.0)

I'm downloading 16299.0, this fixed the first error of not having the right SDK.

But now I get the runtime error Failed Creating the Direct3D device when running in Debug. I can still run samples in Release

Toreutics answered 29/5, 2018 at 18:26 Comment(2)
Running what? Also it seems that the entire question except for the last sentence is not relevant anymore.Candless
This question is still relevant because I experience the same looping installer issue when I attempt to install the Windows SDK 10.0.22621.2428 (released October 24, 2023) which is the specific build of the SDK necessary to work with the same build of the WDK.Capwell
E
129

The error message shows which SDK you need:

The Windows SDK version 10.0.16299.0 was not found

So the SDK for Windows 10 Fall Creators Update 1709 is missing and you downloaded the SDK for April 2018 Update (1803 Build 17134).

Run Visual Studio 2017 installer (C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installer.exe), click on modify, and select 16299 SDK under SDK/framework in individual components tab of the installer:

enter image description here

Enjambement answered 30/5, 2018 at 13:44 Comment(0)
S
8

You can download the required Windows SDK versions from Microsoft:

https://developer.microsoft.com/en-us/windows/downloads/sdk-archive/

Just install the required version and the build should work.

Sweetening answered 6/4, 2022 at 13:6 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.