This project has moved and is read-only. For the latest updates, please go here.

Cannot build Desktop_2017 using VS2017



In Windows 10 Creators Update, Windows 10 SDK version was updated to 10.0.15063.0, and DirectXTK dealed with it.
However, 15063 doesn't contain d3d10sdklayer.h . Therefore If you try to build DirectX TK using VS2017, Cannot open include file erros appear, and build fails.

Steps to reproduce:

  1. Download the latest DirectX Tool Kit from
  2. Open DirectXTK_Desktop_2017.sln with Visual Studio 2017
  3. Build it and c:\program files (x86)\windows kits\10\include\10.0.15063.0\um\d3d10.h(6773): fatal error C1083: Cannot open include file: 'd3d10sdklayers.h':No such file or directory appears on output window

Other Windows SDK versions

Of course, older Windows SDK version contains d3d10sdklayer.h. So I tried to retarget solution to from 14393 to 8.1. But on the all versions failed to build. Here are appeared major erros.
  • 14393 - 10240
    c:\program files (x86)\windows kits\10\include\10.0.**[here is SDK version]**.0\winrt\wrl\implements.h(1580): error C3861: 'AsIID': identifier not found
  • 8.1
    c:\program files (x86)\windows kits\8.1\include\winrt\wrl\client.h(129): error C2833: 'operator InterfaceType' is not a recognized operator or type