I used one Windows Driver samples from github (Filesys) and tried to build it on Windows 10 with Visual Studio 2015.
I have installed both:
But when i try to build a project i see this error message:
An SDK corresponding to WDK version '8.1' was not found. Please install the SDK before building. minispy (Filter\minispy) C:\Program Files (x86)\Windows Kits\10\build\WindowsDriver.common.targets
but SDK of 8.1 is already installed.
Is there any option in Visual studio that i could use to point it to SDK 8.1?
The WDK now supports Visual Studio 2022. All editions are supported. The WDK no longer supports Visual Studio 2019. Download from Visual Studio 2022.
In System Settings go to Add or Remove programs, search for Windows Driver Kit and note the version. The original WDK for Windows 10, version 2004 has a version of 10.0.19041.1, the refreshed WDK version is 10.0.19041.685 For the EWDK, once the EWDK environment is launched, look at the title of the command window.
An SDK corresponding to WDK version '8.1' was not found. Please install the SDK before building. minispy (Filter\minispy) C:\Program Files (x86)\Windows Kits\10\build\WindowsDriver.common.targets but SDK of 8.1 is already installed.
Starting with Windows 10, version 1709, installing the WDK will by default install the WDK extensions for Visual Studio. These extensions are required for integration of the WDK with Visual Studio. Versions of Windows WDK and related downloads Windows Server 2022 WDK for Windows Server 2022 Windows 10, version 2004 WDK for Windows 10, version 2004
The Windows SDK was not included in Visual Studio 2015, so you must install the SDK separately. Later versions of Visual Studio include the Windows SDK. Step 2: Install the WDK The WDK is integrated with Visual Studio and Debugging Tools for Windows (WinDbg).
I had the same problem and the solution is sdk version 10 released after VS 2015 .
You should download and install it manually. I used the following link for downloading sdk : https://dev.windows.com/en-us/downloads/windows-10-sdk
Also see this link for help with downloading and installing sdk http://blogs.msdn.com/b/jpwdkblog/archive/2015/08/21/windows-10.aspx good luck
In this case, you may missed No.3.
Check following points:
Currently, Visual Studio 2015 supports WDK 10. Visual Studio 2013 supports WDK 8.1. In my environment, Visual Studio 2015 may not support WDK 8.1. When build in WindowsUserModeDriver8.1 with VS2015, an error was occurred: prop is not found.
WDK 10 supports build drivers for Windows 10 / 8.1 / 8 (/ 7?). (see also: https://msdn.microsoft.com/en-US/library/windows/hardware/dn914754%28v=vs.85%29.aspx )
To build Windows 8.1 driver, follow below.
You are likely targeting the wrong platform toolset. To build a driver for Windows 10, you need to target one of the Windows 10 platform toolset (WindowsKernelModeDriver10.0 or WindowsUserModeDriver10.0). If you want to use SDK 8.1, then you should use the WDK 8.1 platform toolsets (WindowsKernelModeDriver8.1 or WindowsUserModeDriver8.1).
You cannot use the 10.0 toolsets and try to make them point to SDK 8.1 because there were some key changes to how files are laid on disk between the two kits. Using the appropriate toolset should hopefully fix the issue!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With