我已经安装了Visual Studio 2017专业人员,桌面开发安装了C ++。
我正在尝试构建这里找到的虚拟串行项目: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(非社区版)的正确安装程序吗?
谢谢,