Can't Build sample VirtualSerial with VS Community 2022, WindowsUserModeDriver10.0 Build Tools not found (WDK is installed)

Paul Sievers 20 Reputation points
2024-07-25T15:19:56.61+00:00

Yesterday, I installed:

Microsoft Visual Studio Community 2022

Version 17.10.4

VisualStudio.17.Release/17.10.4+35027.167

Microsoft .NET Framework

Version 4.8.09032

Visual C++ 2022 00482-90000-00000-AA903

Windows Software Development Kit - Windows 10.0.26100.1

Windows Driver Kit - Windows 10.0.26100.1

I open the VirtualSerial sample solution file (freshly downloaded from GitHub) and VisualStudio says:

C:\Users\dev\Downloads\VirtualSerial2\ComPort\VirtualSerial2um.vcxproj : warning : The build tools for WindowsUserModeDriver10.0 cannot be found. Install WindowsUserModeDriver10.0 to build using the WindowsUserModeDriver10.0 build tools.

What is wrong?

I use Windows 11 Pro 23H2 (x64 based)

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,191 questions
Visual Studio Extensions
Visual Studio Extensions
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Extensions: A program or program module that adds functionality to or extends the effectiveness of a program.
227 questions
Windows Driver Kit (WDK)
Windows Driver Kit (WDK)
A set of Microsoft tools that are used to develop, test, and deploy Windows drivers.
122 questions
0 comments No comments
{count} votes

Accepted answer
  1. Tianyu Sun-MSFT 31,246 Reputation points Microsoft Vendor
    2024-07-26T05:54:47.0833333+00:00

    Hello @Paul Sievers ,

    Welcome to Microsoft Q&A forum.

    Please make sure that you downloaded and installed the WDK from here: Install WDK. Also, please make sure that, in Visual Studio, you have installed the "Windows Driver Kit" extension(Extensions > Manage Extensions).

    User's image

    User's image

    If you have installed above two extensions, please try to reinstall WDK.

    Open Control Panel > Programs > Programs and Features > find "Windows Driver Kit – Windows 10.0.26100.1" > right-click it > click Uninstall.

    Open Visual Studio > Extensions > Manage Extensions > find "Windows Driver Kit" extension > click Uninstall > close VS to uninstall it.

    Download WDK from above link which I shared, install the WDK extension into VS again.

    Feel free to let us know the results:)

    Best Regards,

    Tianyu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.