Hi,
something similar has been asked before, but answers seem not to fit.
We have a company build server with “VS2022 Build Tools” in use.
The admin likes to keep the machine “clean”, so I was asked to not install EWDK, but use the existing “Build Tools”, saving 10+ GBs .
Now I installed the SDK and WDK like in https://learn.microsoft.com/en-us/windows-hardware/drivers/download-the-wdk
but can not compile drivers (German messages, but file names are clear:)
"c:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\msbuild.exe" /filelogger /t:clean /t:build PCAN_USB.vcxproj /p:Configuration=Debug /p:Platform=x64
C:\Program Files (x86)\Windows Kits\10\build\WindowsDriver.common.targets(314,5): error MSB4062: Die ValidateNTTargetVe
rsion-Aufgabe konnte nicht aus der C:\Program Files (x86)\Windows Kits\10\build\\bin\Microsoft.DriverKit.Build.Tasks.17
.0.dll-Assembly geladen werden. Die Datei oder Assembly "file:///C:\Program Files (x86)\Windows Kits\10\build\bin\Micro
soft.DriverKit.Build.Tasks.17.0.dll" oder eine Abhängigkeit davon wurde nicht gefunden. Das System kann die angegebene
Datei nicht finden. Stellen Sie sicher, dass die <UsingTask>-Deklaration korrekt ist, die Assembly und alle zugehörigen
Abhängigkeiten verfügbar sind und die Aufgabe eine öffentliche Klasse enthält, die Microsoft.Build.Framework.ITask imp
lementiert. [d:\PEAKCAN\4.x_cpp\Source\Source_Build\PCAN_USB\PCAN_USB.vcxproj]
I also tried to install WDK with “VS 2022 Extensions”, but this refused to run for the “Build Tools”.
A similar call to msbuild.exe
works when I add SDKs and WDK to a “VS 2022 Professional” installation.
Question: Can I make WDK compile with non-EWDK Build tools ?
kind regards,
Joerg Hoppe, PEAK System Technik GmbH