Is it possible to integrate Windows 10 WDK with Visual Studio 2013?

I need to work with Windows 10 type of drivers. Getting and installing WDK 10.0.10075 presents no problem. I had Visual Studio 2013 Pro installed prior to installing the WDK.

How can I integrate the WDK into Visual Studio? I know Visual Studio 2015 RC is available, but I'd rather use the Visual Studio 2013 IDE and the Windows driver samples contain Visual Studio 2013 solutions .

However, when I open the solution and try to build it, I get:

1>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 ==========

      

Full text as a quote for easy reading:

error MSB8020: Build Tools for WindowsKernelModeDriver10.0 (Platform Toolset = 'WindowsKernelModeDriver10.0') could not be found. to create with the build tools WindowsKernelModeDriver10.0, please install the tools to create WindowsKernelModeDriver10.0. Alternatively, you can upgrade to your current Visual Studio tools by choosing the Project Menu, or right-clicking the solution and then choosing Update Solution ....

Unsurprisingly, I don't get "Update Solution ..." as an option on the solution's context menu, and I don't see it in the "Project" submenu in the main menu.

Is there a way to make the Windows 10 WDK toolset known to MSBuild so that Visual Studio 2013 can process it?


So the Windows 10 WDK registers internally C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\v140

(as opposed to v120 for VS 2013 stuff, I think someone was superstitious about using the internal 13.x for VS 2015?).

I first tried to backup C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\v140

and C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\v120

accordingly.

Then I merged the files and folders from v140

to v120

. By the way, the files weren't overwritten.

After trying to create this again, I got another error:

1>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 ==========

      

As a block quote:

error : SDK corresponding to WDK version '' was not found. Install the SDK before installation.

Perspective. I haven't installed the corresponding SDK yet. So I went and did this (Windows 10 SDK 10.0.10069). Unfortunately, the error message remains the same after installing this SDK.

+3


source to share


2 answers


Online samples should be for VS 2015 RC. Many samples have even been converted to generic driver samples.

For kernel mode drivers, this should be possible by moving various MSBuild files and editing some of them, which is similar to what you were trying to do. Please note that this is not officially supported. It is unlikely for user mode drivers to work. The Windows WDK has a dependency on the corresponding SDK version, and because of all the changes that have been made to support the development of Universal Apps and Drivers, the SDK is closely related to VS 2015.



There are also many properties in the MSBuild toolbox that are assumed to be defined, some of which will only be defined if you are using VS 2015.

Please note that your SDK and WDK versions must match. SDK 10.0.10069 does not match WDK version 10.0.10075.

+1


source


$ (LatestTargetPlatformVersion) instead of hardcoded TargetPlatform version like 10 or 8.1



-1


source







All Articles