Why can't I use any WDK in VS2017 to create a simple driver?

by China White   Last Updated September 11, 2019 09:01 AM

So, I have VS 2017 Community installed on a Windows 8.1 system. I have installed the Windows Driver Kit, both for Windows 8.1 and Windows 10 and I can't seem to build a simple driver for either. The driver was written for Windows 10, but it should also work on Windows 8.1, but that's not the problem anyway.

Here are my Visual Studio Installed Components and my WDK

The problem is that when I try to retarget solution from Windows 10 to Windows 8.1 nothing happens and when I try to switch the platform toolset from WindowsKernelModeDriver10.0 to WindowsKernelModeDriver8.1 I get this error: One or more values are invalid

This error also happens if I try to build a new project from scratch, not only the existing one.

If I try to build it using Windows 10 I get this error on compiling:

Error MSB4062 The "ValidateNTTargetVersion" task could not be loaded from the assembly C:\Program Files (x86)\Windows Kits\10\build\bin\Microsoft.DriverKit.Build.Tasks.15.0.dll. Confirm that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.

I don't regularly use VS as I use Delphi, so I don't know much about the IDE and any help would be appreciated.



Related Questions


Updated September 12, 2019 11:01 AM

Updated April 05, 2019 08:01 AM

Updated August 27, 2019 05:01 AM