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

Paul Sievers 0 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.
4,900 questions
Windows Driver Kit (WDK)
Windows Driver Kit (WDK)
A set of Microsoft tools that are used to develop, test, and deploy Windows drivers.
58 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 29,606 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.