【问题标题】:windowsdriver.common.targets missingwindowsdriver.common.targets 丢失
【发布时间】:2019-01-26 20:59:36
【问题描述】:

我正在使用 Visual Studio 2017 开发 Windows 驱动程序。但是在构建项目时,它返回以下错误:

MSB4019 The imported project "C:\Program Files (x86)\Windows Kits\10\build\WindowsDriver.common.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk. libxdma D:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VC\VCTargets\Platforms\x64\PlatformToolsets\WindowsKernelModeDriver10.0\Toolset.targets

我已安装 Windows SDK (10.0.10586.212 & 10.0.17134.12) 和 WDK (10.0.15063.0 & 10.0.16299.15)。

【问题讨论】:

    标签: build sdk visual-studio-2017 wdk


    【解决方案1】:

    您需要安装与 SDK 版本匹配的 WDK。在您的情况下,如果您安装 WDK 10.0.10586.XXX/10.0.17134.XXX 并创建一个将“Windows SDK 版本”设置为其中一个版本的驱动程序项目,这个问题应该会消失。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-02-23
      • 1970-01-01
      • 2016-08-31
      • 2023-03-31
      • 2018-12-03
      • 2014-12-19
      相关资源
      最近更新 更多