【问题标题】:Visual Studio 2017 does not detect Windows Driver Kit installationVisual Studio 2017 未检测到 Windows 驱动程序工具包安装
【发布时间】:2019-02-18 14:18:49
【问题描述】:

我已经安装了带有 C++ 桌面开发的 Visual Studio 2017 Professional。

我正在尝试构建此处找到的虚拟串行项目: https://github.com/Microsoft/Windows-driver-samples/tree/master/serial/VirtualSerial

当我尝试构建它时,我得到了错误: 严重性代码描述项目文件行抑制状态

Error   MSB8020 The build tools for WindowsUserModeDriver10.0 (Platform Toolset = 'WindowsUserModeDriver10.0') cannot be found. To build using the WindowsUserModeDriver10.0 build tools, please install WindowsUserModeDriver10.0 build tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution".   virtualserial   C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VC\VCTargets\Microsoft.Cpp.Platform.targets  

除了这个网站,我找不到任何安装说明。

https://docs.microsoft.com/en-us/windows-hardware/drivers/download-the-wdk

我为Windows 10, version 1803 下载了WDK。 我关闭了 VS2017 并运行了安装程序。

在运行安装程序时,我收到了下面屏幕截图中的消息,我点击了Next 继续安装

运行安装程序后,项目仍然没有构建,同样的错误:WindowsUserModeDriver10.0 is not installed

我在安装过程中遗漏了什么?这是常规 VS2017(不是社区版)的正确安装程序吗?

谢谢,

【问题讨论】:

  • 你也安装了Win10 17134 SDK吗?

标签: windows visual-studio-2017 windows-10 driver


【解决方案1】:

我知道这很旧,但我最近掉进了这个兔子洞。对我有用的是卸载所有 WDK,重新启动并安装 WDK 1803(从Other WDK downloads 下载的 wdksetup.exe 程序在属性中显示版本 10.0.17134.1)。当您在安装过程结束时添加 Visual Studio 集成时,该 WDK 安装程序会专门调用 VS 2017。

【讨论】:

    【解决方案2】:

    【讨论】:

    • 嗯,这是一个典型的 Answers 答案。昨天刚装好,效果不错。使用 Help > About 用 VS2017 版本号记录您的问题。并帮助 > 发送反馈 > 报告问题,让他们知道出了什么问题。同时使用另一台机器。
    猜你喜欢
    • 1970-01-01
    • 2019-07-19
    • 1970-01-01
    • 2017-10-10
    • 2017-10-18
    • 1970-01-01
    • 1970-01-01
    • 2023-04-03
    • 2023-03-28
    相关资源
    最近更新 更多