簡體   English   中英

Visual Studio 2017 未檢測到 Windows 驅動程序工具包安裝

[英]Visual Studio 2017 does not detect Windows Driver Kit installation

我已經安裝了帶有 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 我關閉了 VS2017 並運行了安裝程序。

運行安裝程序時,我在下面的屏幕截圖中收到消息,我單擊Next繼續安裝

運行安裝程序后,項目仍然沒有構建,同樣的錯誤: WindowsUserModeDriver10.0 is not installed

我在安裝過程中缺少什么? 這是常規 VS2017(不是社區版)的正確安裝程序嗎?

謝謝,

在此處輸入圖像描述

我知道這是舊的,但我最近掉進了這個兔子洞。 對我有用的是卸載所有 WDK,重新啟動並安裝 WDK 1803(從其他 WDK 下載下載的 wdksetup.exe 程序在屬性中顯示版本 10.0.17134.1)。 當您在安裝過程結束時添加 Visual Studio 集成時,該 WDK 安裝程序會專門調用 VS 2017。

在我的情況下,我安裝了帶有 SDK 19041 和 WDK 19041 的 vs2022。

經過一番測試,我意識到VS2022只支持WDK 22621(所以在這個日期)。 所以我安裝了WDK 22621和SDK 22621,問題就解決了。

如果仍然找不到 Kernel Driver Build 選項,請嘗試運行此文件C:\Program Files (x86)\Windows Kits\10\Vsix\VS2022\10.0.22621.0\WDK.vsix (WDK 19041 只有VS2019 )。 它是 Visual Studio 的擴展。

據此: https ://answers.microsoft.com/en-us/windows/forum/windows_10-hardware-winpc/windows-wdk-on-visual-studio-2017-community/fdbd2b44-e57a-4849-903d- 04001205a764 Visual Studio 2017目前不支持WDK。這太荒謬了

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM