Package Microsoft.Windows.Tools.WinIDE.Debugger.DebuggerPackage was loaded incorrectly

2022-07-06T22:05:10.743+00:00

![![218355-%D0%B8%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5.png
218326-%D0%B8%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5.png

After installation WDK Extension an error occurs on startup vs 2022. I have already reinstalled both vs and the extension itself many times, but nothing helps

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,440 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
907 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 24,881 Reputation points Microsoft Vendor
    2022-07-07T08:52:07.09+00:00

    Hi @Сергеевич Евгений ,

    Thanks for taking time to post this issue here.

    Are you using Visual Studio 2022 version 17.2.0(or higher version) and Windows 11 version 22H2 WDK?

    This doc: Download the Windows Driver Kit(WDK) says:

    Due to a regression, it’s not possible to debug drivers within the Visual Studio interface when using Visual Studio 2022 version 17.2.0 and the Windows 11, version 22H2 WDK. To work around the problem, debug with WinDbg or use a version of Visual Studio earlier than 17.2.0. The following error messages are related to the regression:

    • The service Microsoft.VisualStudio.Shell.Interop.SVsUIShell must be installed for this feature to work. Ensure that this service is available.
    • The Microsoft.Windows.Tools.WinIDE.Debugger.DebuggerPackage, DebuggerPackage, Version=10.0.0.0, Culture=neutral, PublicKeyToken=null package did not load correctly.

    So the workaround should be debugging with WinDbg or using an earlier version of VS 2022, earlier than 17.2.0.

    Thanks for your understanding, have a nice day.

    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.