Visual Studio version 16.5.x causes Static Driver Verifier (SDV) to fail in the InterceptedBuild state

  • Thread starter Thread starter Cymon Kilmer [MSFT]
  • Start date Start date
C

Cymon Kilmer [MSFT]

Guest
In WDK with VS16.5.x and later, SDV fails in the InterceptedBuild state. This issue is being fixed in VS16.6 and until the fix is available here is a workaround:

In C:\Program Files (x86)\Windows Kits\10\Tools\sdv\smv\bin\MSBuild-intercept.xml, add these two lines (highlighted below) to the link.exe and lib.exe nodes:

<!-- LINK.EXE -->

<BINARY name="link.exe">

<LAUNCH filename="%smv%\bin\iwrap.exe" use_return_value="false" inherit_command_line="true">

<ENV PATH="%sdv%\bin\engine;%PATH%" />

<ADD text="/iwrap:link.exe" />

</LAUNCH>

<LAUNCH filename="link.exe" use_return_value="true" inherit_command_line="true"/>

</BINARY>

<!-- LIB.EXE -->

<BINARY name="lib.exe">

<LAUNCH filename="%smv%\bin\iwrap.exe" use_return_value="false" inherit_command_line="true">

<ENV PATH="%sdv%\bin\engine;%PATH%" />

<ADD text="/iwrap:lib.exe" />

</LAUNCH>

<LAUNCH filename="lib.exe" use_return_value="true" inherit_command_line="true"/>

</BINARY>

Continue reading...
 
Back
Top