wdk1703+vs2015编译的诡异问题
最近將wdk升級到1703(10.0.15063.0)版本,編譯一個新建的minifiter項目居然出現了失敗
提示錯誤為 WindowsDriver.common.targets(460,5): error MSB6004: The specified task executable location "\stampinf.exe" is invalid.
?
解決如下:
https://social.msdn.microsoft.com/Forums/Windowsserver/en-US/ef29f34e-6d6f-475b-a522-161f76d804d2/hardware-development-kits-for-windows-10-version-1709-october-2017?forum=wdk
Install the latest hardware development tools to build, test and deploy drivers; test and measure your hardware running Windows; and customize, assess, and deploy Windows 10 on your hardware.
WDK: https://developer.microsoft.com/en-us/windows/hardware/windows-driver-kit
WinDbg: https://developer.microsoft.com/en-us/windows/hardware/download-windbg
HLK: https://developer.microsoft.com/en-us/windows/hardware/windows-hardware-lab-kit
ADK: https://developer.microsoft.com/en-us/windows/hardware/windows-assessment-deployment-kit
?
?
Known issues for the WDK:
Unable to build a project targeting a SDK version older than 1709 (version 10.0.16299.0) with WDK 1709 (build 16299)
One of following errors is reported:
C:\Program Files (x86)\Windows Kits\10\build\WindowsDriver.common.targets(460,5): error MSB6004: The specified task executable location "\stampinf.exe" is invalid.
C:\Program Files (x86)\Windows Kits\10\build\WindowsDriver.common.targets(780,5): error MSB6004: The specified task executable location "\tracewpp.exe" is invalid.
Workaround: Add to your project .vcxproj file the following lines after the first one:
<PropertyGroup>
??? <WDKBinRoot Condition="'$(WDKBinRoot)' == ''">$(WindowsSdkDir)bin</WDKBinRoot>
??? <WDKBinRoot_x86>$(WDKBinRoot)\x86</WDKBinRoot_x86>
??? <WDKBinRoot_x64>$(WDKBinRoot)\x64</WDKBinRoot_x64>
</PropertyGroup>
You can also add these lines to WindowsDriver.Default.props or WindowsDriver.Shared.props (located under <Windows 10 Kits installation root>\build, by default “%ProgramFiles(x86)%\Windows Kits\10\build” or “%ProgramFiles(x86)%\Windows Kits\10\build”) to allow all projects to build successfully without any modifications.
Unable to build projects under VS2015 after installing WDK 1709 (version 16299) on a machine with WDK 1607 (build 14393)
One of following errors is reported:
C:\Program Files (x86)\Windows Kits\10\build\WindowsDriver.common.targets(476,9): error MSB4064: The "ProviderName" parameter is not supported by the "StampInf" task. Verify the parameter exists on the task, and it is a settable public instance property.
C:\Program Files (x86)\Windows Kits\10\build\WindowsDriver.common.targets(1526,9): error MSB4064: The "KitVersion" parameter is not supported by the "Telemetry" task. Verify the parameter exists on the task, and it is a settable public instance property.
Workaround: As WDK has moved to provide compatibility with VS2017, a few file updates required by the VS2015 add-on are not being bundled by the latest version of WDK. WDK 1703 (version 15063) includes these updates, and therefore installing this version will resolve the issue. If your project targets an older version of WDK, you might also require doing the workaround previously provided.
?
在WindowsDriver.Shared.props增加上述配置,編譯解決!
posted on 2018-01-13 18:16 ultracpp 閱讀(...) 評論(...) 編輯 收藏轉載于:https://www.cnblogs.com/ultracpp/p/8280161.html
總結
以上是生活随笔為你收集整理的wdk1703+vs2015编译的诡异问题的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 易语言执行linux脚本,初识易语言到编
- 下一篇: python 中cPickle学习二