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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值