zoukankan      html  css  js  c++  java
  • 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 Kits10uildWindowsDriver.common.targets(460,5): error MSB6004: The specified task executable location "stampinf.exe" is invalid.

    C:Program Files (x86)Windows Kits10uildWindowsDriver.common.targets(780,5): error MSB6004: The specified task executable location " racewpp.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>uild, by default “%ProgramFiles(x86)%Windows Kits10uild” or “%ProgramFiles(x86)%Windows Kits10uild”) 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 Kits10uildWindowsDriver.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 Kits10uildWindowsDriver.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增加上述配置,编译解决!

  • 相关阅读:
    字符串本质
    常用类
    异常处理
    最终类object 和内部类
    接口
    Java多态
    NIO之五Selector
    NIO之四Buffer
    NIO之三Socket通道
    JAVA NIO(二)Channel通道
  • 原文地址:https://www.cnblogs.com/ultracpp/p/8280161.html
Copyright © 2011-2022 走看看