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
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.
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.
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.
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.
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.
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 .)
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.
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!
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:
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With