问题
Recently I've menaged to develop Windows Kernel Mode Driver so I started reading about that. I've read I need to download WDK. I use Visual Studio 2017 Community so I've downloaded WDK (for Windows 10) version 1709 (in default folder if it matters). When I try to create new project there should appear new templates for developing drivers but they don't.
(From what I've read I've deduced I only need to download the WDK and it's enough, am I right? It's described like that on MSDN)
So my question is: what am I supposed to do to the Kernel Mode Driver Project Template appear in Project Templates menu? I've really tried to google my problem and I did research but I haven't found anything usefull. I know it looks like very silly question and I'm so sorry if it does but I really don't know what to do, I tried many things like redownloading the WDK or downloading other version and so on but nothing helped. Any help will be appreciated.
回答1:
Don't use Visual Studio 2015 and Visual Studio 2017 installed at the same time, I've seen this cause problems. Neither have two versions of WDK installed at the same time if you happened to have done this.
- Uninstall all versions of Visual Studio on your machine.
- Install Visual Studio 2017.
- Install the latest version of Windows Driver Kit (WDK) for Visual Studio 2017.
- Try again and see if the template shows up.
Did the installation of WDK throw any errors last time? Is the folders for WDK present under the Windows Kit area? We sort of need more details if possible, otherwise we'll just be guessing into oblivion for the next 1000 roman years.
回答2:
https://marketplace.visualstudio.com/items?itemName=VisualStudioProductTeam.MicrosoftVisualStudio2017InstallerProjects
Need to install this to get rid of issue
来源:https://stackoverflow.com/questions/48037652/windows-kernel-mode-driver-project-template-doesnt-appear-in-visual-studio-proj