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编译的诡异问题相关推荐

  1. vs2015编译linux源码,使用Visual Studio 2017(VS2017)编译OpenCC 1.0.4 (Open Chinese Convert)源代码...

    摘要:本文介绍了Win7 64位环境下OpenCC(Open Chinese Convert) 1.0.4源码编译全过程,除VS2017外,VS2013以上版本也应该基本同样适用,其他版本的Windo ...

  2. VS2015编译TensorFlow C++程序完全攻略

    VS2015编译TensorFlow C++程序完全攻略 本文参考和综合了多篇网络博客文章,加以自己的实践,最终终于在windows环境下,编译出可以用于C++程序调用tensorflow API的程 ...

  3. VS2015编译ffmpeg 3.4.2

    https://blog.csdn.net/bobsweetie/article/details/50858358 https://blog.csdn.net/csdnwei/article/deta ...

  4. VS2015编译32位Opencv310(动态库+静态库,文末有下载链接)

    VS2015编译32位Opencv310(动态库+静态库 编译过得,可以直接用的: http://download.csdn.net/download/longzaihuaxia/9802510 之前 ...

  5. VS2015 编译输出的*.lib,*.dll,*.exe的区别

    VS2015编译完C++程序后,一般会在Release或者Debug文件路径下生成多个文件: 例如:输出文件夹下会出现这些文件:*.exe,*.ilk,*.obj,*.pch,*.pdb,*.idb, ...

  6. VS2015编译MuPDF 1.13.0源码(详细)

    前言 要想对PDF进行二次开发,那么MuPDF一定是首选,MuPDF 上的呈现器专为高质量的抗失真图像量身打造,它以像素级的精度高品质呈现文字和文字间的间距,从而获得最高级别的显示保真度,在设备屏幕上 ...

  7. Windows下 VS2015编译boost1.62

    VS2015编译boost1.62 Boost库是一个可移植.提供源代码的C++库,作为标准库的后备,是C++标准化进程的开发引擎之一. Boost库由C++标准委员会库工作组成员发起,其中有些内容有 ...

  8. boost.asio openssl zlib protobuf icu vs2015编译

    很早以前基于boost.asio开发了服务器程序,今天需要重新准备一下编译环境,把过程记录下来做个备份. 现在的windows平台开发环境win10 + vs2015 编译protobuf 2.6.1 ...

  9. 实践详细篇-Windows下使用VS2015编译的Caffe训练mnist数据集

    上一篇记录的是学习caffe前的环境准备以及如何创建好自己需要的caffe版本.这一篇记录的是如何使用编译好的caffe做训练mnist数据集,步骤编号延用上一篇 <实践详细篇-Windows下 ...

最新文章

  1. CTF短秘钥的RSA解密
  2. linux服务端搭配win7客户端的frp
  3. json可视化编辑器_推荐一个基于 Vue 的前端界面可视化设计器项目
  4. 4分钟训练ImageNet!腾讯机智创造AI训练世界纪录
  5. 架构为什么要以领域为核心
  6. 多层感知机 深度神经网络_使用深度神经网络和合同感知损失的能源产量预测...
  7. python怎么清屏_python实现清屏的方法 Python Shell中清屏一般有两种方法。
  8. JavaScript parseInt() 函数
  9. oracle中查找锁定状态的用户
  10. php beanstalkd使用,如何用PHP设置Beanstalkd
  11. Qt 网络编程制作一个客户端与服务器
  12. android 蓝牙耳机 找不到驱动程序,bluetooth外围设备,详细教您bluetooth外围设备找不到驱动程序怎么解决...
  13. statsmodels.stats.proportion.proportions_ztest
  14. 如何在服务器发布网站
  15. 微火上线ai绘画小程序搭建系统,ai绘画小程序源码触手可及
  16. Linux服务器git clone卡住不动
  17. 2022-2028全球与中国移动网页浏览器市场现状及未来发展趋势
  18. 014基于深度学习的脑电癫痫自动检测系统-2018(300引用)
  19. ORAN专题系列-30:5G基站如何升级到O-RAN基站 - FHGW(FrontHaul Gateway)的时钟同步系统
  20. R语言plot函数以及acf函数,随机性检验

热门文章

  1. Oracle filter 函数,Oracle数据库之SQL单行函数---字符函数续
  2. GPU Gems2 - 8 使用距离函数的逐像素位移贴图
  3. 茶苑机器人怎么看出来_小儿脑瘫怎么看出来?出现4个异常,该早点去看医生...
  4. tablueau地图标记圆形_30天30张中国风地图,从青绿山水到秦砖汉瓦
  5. 【caffe-Windows】基于Python多标签方法——VOC2012数据集
  6. ListViewAutoScrollHelper
  7. Saiku Table展示数据合并bug修复(二十五)
  8. 【javascript】异步编年史,从“纯回调”到Promise
  9. Xtreme8.0 - Kabloom dp
  10. Robert C. Martin关于UML、CASE的观点