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.
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.