Visual Studio 2017无法检测到Windows Driver Kit安装

时间:2018-09-13 19:33:50

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

我已经拥有安装了C ++的桌面开发的Visual Studio 2017专业版。

我正在尝试构建在这里找到的虚拟串行项目: 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(非社区版)的正确安装程序吗?

谢谢

enter image description here

1 个答案:

答案 0 :(得分:-1)