HLK and problem with DVL files ...

Driver Verification Log files [ https://docs.microsoft.com/en-us/windows-hardware/drivers/develop/creating-a-driver-verification-log ] are a requirement for HLK submissions for Win11; as such, I need to be able generate them pretty soon. There are two methods available to me to accomplish this presented in that document, through the MSBuild process and using the standalone dvl.exe tool …

Oy, sorry for the strange formatting! Mental note, learn how this site does formatting!!

Attempting to use the MSBuild procedure inside of the x64 Native Tools Command Prompt after an installation of Visual Studio 16.11.0 as documented in the instructions yields this:



** Visual Studio 2019 Developer Command Prompt v16.11.0
** Copyright (c) 2021 Microsoft Corporation


[vcvarsall.bat] Environment initialized for: ‘x64’

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community>msbuild
Microsoft (R) Build Engine version 16.11.0+0538acc04 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

MSBUILD : error MSB1003: Specify a project or solution file. The current working directory does not contain a project or solution file. [showing version info for MSBuild]

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community>cd\

C:\CoolProject>msbuild MyCoolProject.vcxproj /target:dvl /p:Configuration=“Release” /P:Platform=x64
Microsoft (R) Build Engine version 16.11.0+0538acc04 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 8/18/2021 12:48:00 PM.
Project “C:\MyCoolProject.vcxproj” on node 1 (dvl target(s)).
dvl:
dvl.exe

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly ‘System.Runtime, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ or one of its dependencies. The syste
m cannot find the file specified.
C:\Program Files (x86)\Windows Kits\10\build\windowsdriver.Sdv.targets(194,9): error MSB3073: The command "dvl.exe " exited with code -532462766. [C:\CoolProject\MyCoolProject.vcxproj]
Done Building Project “C:\CoolProject\MyCoolProject.vcxproj” (dvl target(s)) – FAILED.

Build FAILED.

“C:\CoolProject\MyCoolProject.vcxproj” (dvl target) (1) →
(dvl target) →
C:\Program Files (x86)\Windows Kits\10\build\windowsdriver.Sdv.targets(194,9): error MSB3073: The command "dvl.exe " exited with code -532462766. [C:\CoolProject\MyCoolProject.vcxproj]

0 Warning(s)
1 Error(s)

Time Elapsed 00:00:12.33

C:\CoolProject>

and attempting to run the dvl program natively yields this …


C:\Program Files (x86)\Windows Kits\10\Tools\dvl>dvl

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly ‘System.Runtime, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ or one of its dependencies. The system c
annot find the file specified.

C:\Program Files (x86)\Windows Kits\10\Tools\dvl>

Researching this error finds this link [ https://docs.microsoft.com/en-us/windows-hardware/drivers/wdk-known-issues ] where it has the following issue …


DVL generation fails with System.IO.FileNotFoundException
When attempting to create a Driver Verification Log (DVL), the following error will be presented:

Console

Copy
Unhandled Exception: System.IO.FileNotFoundException:
Could not load file or assembly
‘System.Runtime, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’
or one of its dependencies.
The system cannot find the file specified.
This can occur in both the command-line and GUI environments. This issue is resolved in a future version of the WDK and can be seen in the Windows Insider Preview WDK. Unfortunately, no workaround exists for the current version.

According to that literature, I need to wait for a future version of the WDK beyond that of the Insider Preview, with no workaround … or apply for an errata. Neither of those are going to be good solutions to the end clients, has anyone run into this? Are there any workarounds?

Thx!