VS 2017 & WDK Integration

Category: windows hardware wdk and driver development

Question

InlineOutline on Fri, 01 Jun 2018 22:54:32


Hello, I'm hoping someone can give me a hand here or point me in the right direction...

I installed Visual Studios 2017. It came with the 1803 SDK. I also downloaded and installed the 1803 WDK from here: https://docs.microsoft.com/en-us/windows-hardware/drivers/download-the-wdk#wdk-for-windows-10-version-1803

The download page for the WDK says that it automatically adds the Visual Studio integration extensions during install. This did not work for me. I still do not have any driver-related project wizards/new project options in Visual Studio after installing the WDK.

In an effort to avoid Header Hell, I'm wondering if anyone knows of a fix? I've tried reinstalling both VS and the WDK, but this did not solve the problem.

Thanks for any help you can provide.

Replies

Pavel A on Sat, 02 Jun 2018 00:10:42


Try the solution in this thread.

-- pa

InlineOutline on Sat, 02 Jun 2018 00:30:33


Thanks for the response.

I do not have a '...\Windows Kits\10\bin\10.0.16257.0\vsix' directory (I'm using the newest anyhow, so it should be ...\bin\10.0.17134.0...). As a matter of fact, I've checked every directory in the Windows Kits install folder and there is not a "WDK.VSIX" file anywhere in any of them.

Do you know if it goes by another name now?

Jakob Lichtenberg on Sat, 02 Jun 2018 07:40:30


Look for following file:

>dir /s /b wdk.vsix
C:\Program Files (x86)\Windows Kits\10\Vsix\WDK.vsix

1) If WDK.vsix is present, then the WDK is installed.

2) If WDK.vsix is not present, then the WDK is not installed.

Sounds like we are in the 2nd case.  In this case check Settings -> Apps & features -> Windows Driver Kit.  

Is 10.0.17134 installed?

InlineOutline on Sat, 02 Jun 2018 11:20:00


No such file or directory: WDK.vsix

In the Apps & Features, the WDK is list as version 8.59.29757, so I'm guessing that I have the wrong version of the DDK installed. I don't ever remember installing WDK 8 on this system. Hmm.

Jakob Lichtenberg on Sat, 02 Jun 2018 13:52:01


Alright. Then try to follow the instructions at https://docs.microsoft.com/en-us/windows-hardware/drivers/download-the-wdk#wdk-for-windows-10-version-1803 to install WDK.

InlineOutline on Sat, 02 Jun 2018 22:21:50


Thanks for walking me through my stupid moment :)

Faizi_002 on Fri, 17 Aug 2018 08:53:40


For versions 1709 and above, i think it is possible that you would not have WDK.vsix even after successfully installing WDK. 

In such a case, absence of WDK.vsix might mean, the WDK extension for Visual studio is not installed. 

A workaround is to uninstall wdk from Add/Remove programs.

Install it again and if VS207 is already installed on the target machine, you will be prompted to add extension after the successful installation of WDK. 

If so, select that option and wait for it to be installed. 

I just could not find a way to install extension alone, which is kind of needed for me to automate the installation of WDK with VS2017 :( 

Jakob Lichtenberg on Fri, 17 Aug 2018 14:07:56


The order on the posted instructions is to install VS first, then install WDK. That will leave the WDK.vsix both in the Windows Kifs folder and also installed to your VS installations.

ThisIsAnAmazingName on Thu, 25 Oct 2018 21:00:00


The solution i found to this was to manually run C:\Program Files (x86)\Windows Kits\10\Vsix\WDK.vsix from command line as administrator. for whatever reason my install just didnt link it first.