title: How do I install Windows 10 SDK for use with Visual Studio 2017
body: <p>I can't figure out how to install Windows 10 SDK for Visual Studio 2017.</p>
  
  <p>I downloaded and ran the Windows 10 SDK installer, and it displays <code>Please find winsdksetup.exe in ....\Windows kits\10\WindowsSDK to install Windows Software Development Kit - Windows 10.0.17134.12.</code></p>
  
  <p>When I run <code>winsdksetup.exe</code>, it takes me through the same loop, where it downloads a bunch of executable installers into this directory and show the same exact message.</p>
  
  <p>When I try to build a DirectX project in VS2017, I get the error:</p>
  
  <pre><code>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".    
  </code></pre>
  
  <p>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.</p>
  
  <p>Thanks,</p>
  
  <p>EDIT: 
  Under VS2017 - Tools -> Get Tools and Features
  I have checked</p>
  
  <p>Game Development with C++</p>
  
  <p>and under Optional I have </p>
  
  <p>C++ Profiling tools
  Windows 10 SDK (10.0.17134.0)</p>
  
  <p>I'm downloading 16299.0, this fixed the first error of not having the right SDK.</p>
  
  <p>But now I get the runtime error <code>Failed Creating the Direct3D device</code> when running in Debug. I can still run samples in Release</p>