(https://community.osr.com/discussion/280988/enterprise-wdk-seems-like-its-usable-now)
Hi
I have VS2019 preview and can run SDV w/ a preview WDK. I also have an EWDK of the same preview version, but am unable to run the SDV.
My cmd
MSBuild Bus.VcxProj /p:Configuration=Release /p:platform=x64 /t:sdv /property:Inputs=“/clean”
MSBuild Bus.VcxProj /p:Configuration=Release /p:platform=x64 /t:sdv /property:Inputs=“/check:default.sdv” /p:Inputs=“/lib:BusLib.vcxproj”
Just running this as it is form EWDK cannot find staticdv (.exe). I can compile/CA though (/t:build etc).
MSBuild Bus.VcxProj /p:Configuration=Release /p:platform=x64 /t:sdv /property:Inputs="/clean"
Microsoft (R) Build Engine version 16.0.461+g6ff56ef63c for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Project "C:\srcs\Bus.VcxProj" on node 1 (sdv target(s)).
sdv:
staticdv /clean
'staticdv' is not recognized as an internal or external command, operable program or batch file.
F:\Program Files\Windows Kits\10\build\windowsdriver.Sdv.targets(136,9): error MSB3073: The command "staticdv /clean" exited with code 9009. [C:\srcs\Bus.VcxProj]
Done Building Project "C:\srcs\Bus.VcxProj" (sdv target(s)) -- FAILED.
So in my batch file I added StaticDV.exe path to PATH env - set path=%path%;%WdkContentRoot%Tools\sdv\bin
Directory of F:\Program Files\Windows Kits\10\Tools\sdv\smv\analysisplugins\sdv\bin
05/14/2019 10:26 AM 2,632 **staticdv.cmd**
Directory of F:\Program Files\Windows Kits\10\Tools\sdv\bin
05/14/2019 10:22 AM 110,592 **staticdv.exe**
Not sure if I should, but I also invoked VS env like mentioned @ https://docs.microsoft.com/en-us/windows-hardware/drivers/develop/creating-a-log-file-for-static-driver-verifier
It finds staticdv now, but fails like below. Please let me know if I need to do anything else to invoke SDV from EWDK.
I also have (VS 2019,) same WDK/SDK version of WDK installed on my machine and I can SDV through my local install not thru EWDK.
But when I local mount same version EWDK.iso to test it out, I am not able to SDV.
call "F:\Program Files\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" x64
**********************************************************************
** Visual Studio 2019 Developer Command Prompt v16.0
** Copyright (c) 2019 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: ‘x64’
MSBuild Bus.VcxProj /p:Configuration=Release /p:platform=x64 /t:sdv /property:Inputs="/clean"
Microsoft (R) Build Engine version 16.0.461+g6ff56ef63c for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 7/20/2019 7:08:42 PM.
Project "C:\srcs\Bus.VcxProj" on node 1 (sdv target(s)).
sdv:
staticdv /clean
---------------------------------------------------------------------
Microsoft (R) Windows (R) Static Driver Verifier Version 4.0.1902.1
Copyright (C) Microsoft Corporation. All rights reserved.
---------------------------------------------------------------------
SDV does not support this build environment.
SDV encountered an error trying to detect/set the environment. Please ensure that a complete WDK is installed on the system.
SDV exit code: 24
F:\Program Files\Windows Kits\10\build\windowsdriver.Sdv.targets(136,9): error MSB3073: The command "staticdv /clean" exited with code 24. [C:\srcs\Bus.VcxProj]
Done Building Project "C:\srcs\Bus.VcxProj" (sdv target(s)) -- FAILED.
Build FAILED.
EWDK env vars
ToolsPath=F:\Program Files\Windows Kits\10\tools
ToolsPathARCH=F:\Program Files\Windows Kits\10\tools\x86
UniversalCRTSdkDir=F:\Program Files\Windows Kits\10
UniversalCRTSdkDir_10=F:\Program Files\Windows Kits\10
VCIDEInstallDir=F:\Program Files\Microsoft Visual Studio\2019\BuildTools\Common7\IDE\VC
VCINSTALLDIR=F:\Program Files\Microsoft Visual Studio\2019\BuildTools\VC
VCToolsInstallDir=F:\Program Files\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.20.27508
VCToolsRedistDir=F:\Program Files\Microsoft Visual Studio\2019\BuildTools\VC\Redist\MSVC\14.20.27508
VCToolsVersion=14.20.27508
Version_Number=10.0.18908.0
VisualStudioVersion=16.0
VS140COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools
VS160COMNTOOLS=F:\Program Files\Microsoft Visual Studio\2019\BuildTools\Common7\Tools
VSCMD_ARG_app_plat=Desktop
VSCMD_ARG_HOST_ARCH=x86
VSCMD_ARG_TGT_ARCH=x86
VSCMD_ARG_winsdk=none
VSCMD_VER=16.0
VSINSTALLDIR=F:\Program Files\Microsoft Visual Studio\2019\BuildTools
WDKBinRoot=F:\Program Files\Windows Kits\10\bin\10.0.18908.0\x86
WDKContentRoot=F:\Program Files\Windows Kits\10
WDK_CURRENT_KIT_VERSION=10
windir=C:\windows
WindowsSdkDir=F:\Program Files\Windows Kits\10
WindowsSdkVerBinPath=F:\Program Files\Windows Kits\10\bin\10.0.18908.0\x86
WindowsSDK_ExecutablePath_x64=C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\x64
WindowsSDK_ExecutablePath_x86=C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\