title: Is it possible to integrate the Windows 10 WDK with Visual Studio 2013?
body: <p>I need to work on a Windows 10 specific driver type. Getting and installing the WDK 10.0.10075 is no problem. I had Visual Studio 2013 Pro installed prior to installing the WDK.</p>
  
  <p>How can I now integrate the WDK into Visual Studio? I know the Visual Studio 2015 RC is available, but I'd prefer to use the Visual Studio 2013 IDE for now and the <a href="https://github.com/Microsoft/Windows-driver-samples" rel="nofollow">Windows driver samples</a> <strong>contain Visual Studio 2013 solutions</strong>.</p>
  
  <p>However, when I open the solution and attempt to build it, I get:</p>
  
  <pre><code>1&gt;C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.targets(64,5): error MSB8020: The build tools for WindowsKernelModeDriver10.0 (Platform Toolset = 'WindowsKernelModeDriver10.0') cannot be found. To build using the WindowsKernelModeDriver10.0 build tools, please install WindowsKernelModeDriver10.0 build tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Upgrade Solution...".
  ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
  </code></pre>
  
  <p>Full text as a quote for more convenient reading:</p>
  
  <blockquote>
    <p><strong>error MSB8020:</strong> The build tools for WindowsKernelModeDriver10.0
    (Platform Toolset = 'WindowsKernelModeDriver10.0') cannot be found. To
    build using the WindowsKernelModeDriver10.0 build tools, please
    install WindowsKernelModeDriver10.0 build tools.  Alternatively, you
    may upgrade to the current Visual Studio tools by selecting the
    Project menu or right-click the solution, and then selecting "Upgrade
    Solution...".</p>
  </blockquote>
  
  <p>Unsurprisingly I don't get "Upgrade Solution..." as an option in the context menu of the solution and I don't see it in the "Project" submenu of the main menu either.</p>
  
  <p>Is there a way to make the Windows 10 WDK tool set known to MSBuild such that Visual Studio 2013 can handle it?</p>
  
  <hr>
  
  <p>So the Windows 10 WDK registers itself inside <code>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\v140</code> (as opposed to v120 for the VS 2013 stuff, I guess someone was superstitious about using internal version number 13.x for VS 2015?).</p>
  
  <p>What I tried first was to take a backup of <code>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\v140</code> and <code>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\v120</code> respectively.</p>
  
  <p>I then merged the files and folders from under <code>v140</code> into <code>v120</code>. No <em>files</em> were overwritten in the process, by the way.</p>
  
  <p>Trying to build once again using this, I got another error:</p>
  
  <pre><code>1&gt;C:\Program Files (x86)\Windows Kits\10\build\WindowsDriver.common.targets(178,5): error : An SDK corresponding to WDK version '' was not found. Please install the SDK before building.
  ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
  </code></pre>
  
  <p>As a block quote:</p>
  
  <blockquote>
    <p><strong>error</strong> : An SDK corresponding to WDK version '' was not found. Please install the SDK before building.</p>
  </blockquote>
  
  <p>Promising. I had indeed not installed the respective SDK just yet. So I went and did that (Windows 10 SDK 10.0.10069). Unfortunately the error message stays the same after installation of that SDK.</p>