Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 329
Mich Avatar asked May 29 '18 18:05

Mich


People also ask

Does Visual Studio need Windows 10 SDK?

It is not necessary if you limit yourself to what is possible with standard C++ (console-only output, using the C++ standard library, etc). If you don't know, but have in mind "I just want my applications to have a windows interface" then you need the windows SDK. Well, technically, you don't need the SDK.

Is Windows SDK installed with Visual Studio?

The Windows SDK is installed as part of the Desktop development with C++ workload in the Visual Studio Installer. A standalone version is available at Windows SDK.

How do I download Windows 10 SDK?

You can get the Windows SDK in two ways: install it from this page by selecting the download link or by selecting “Windows 11 SDK (10.0. 22621.0)” in the optional components of the Visual Studio 2022 Installer. Before you install this SDK: Review all system requirements.

How do I find the Windows 10 SDK?

More specifically, select Tools > Get Tools and Features..., then expand the "Desktop development with C++" section on the right, and look for "Windows 10 SDK (<version>)" under Optional features. It's worth noting that the Windows SDK version found in VS can be different than that found under Windows.

How to get Windows 10 SDK for Visual Studio 2015?

Make sure your system having good internet connectivity. We can get Windows 10 SDK by installing Windows 10 Standalone SDK or you don’t need to install this SDK if you already having Visual Studio 2015 Update 1 or later. You must enable Hyper-V on your machine to use windows 10 emulators.

How do I install the Windows SDK?

The Windows SDK is installed as part of the Desktop development with C++ workload in the Visual Studio Installer. A standalone version is available at Windows SDK. Open the shortcut menu for the project node, and choose Retarget projects. (In earlier versions of Visual Studio, choose Retarget SDK Version .)

How to get Windows 10 SDK for emulators?

We can get Windows 10 SDK by installing Windows 10 Standalone SDK or you don’t need to install this SDK if you already having Visual Studio 2015 Update 1 or later. You must enable Hyper-V on your machine to use windows 10 emulators.

How to install 16299 SDK in Visual Studio 2017?

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: Thanks for contributing an answer to Stack Overflow!


2 Answers

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

like image 141
magicandre1981 Avatar answered Oct 09 '22 15:10

magicandre1981


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.

like image 4
Christopher K. Avatar answered Oct 09 '22 16:10

Christopher K.