Describe the bug
Natvis for C++/WinRT doesn't work because the *.winmd files aren't deployed alonside the process *.exe. This affects both SDK and user authored types.
Steps to reproduce the bug
- Create a solution from
Blank App, Packaged (WinUI 3 in Desktop) template.
- Set a breakpoint in
App::OnLaunched()
- Debug and pause at breakpoint.
- Try to inspect the
LaunchActivatedEventArgs argument.
Expected behavior
The debug visualizer shows object properties based on metadata.
Screenshots

Notice the output message. To enable natvis diagnostics see documentation.
NuGet package version
1.1.3
Packaging type
Packaged (MSIX)
Windows version
Windows 11 version 21H2 (22000)
IDE
Visual Studio 2022
Additional context
A workaround is to manually copy the *.winmd files from Microsoft.WindowsAppSDK to the executable folder.
Describe the bug
Natvis for C++/WinRT doesn't work because the *.winmd files aren't deployed alonside the process *.exe. This affects both SDK and user authored types.
Steps to reproduce the bug
Blank App, Packaged (WinUI 3 in Desktop)template.App::OnLaunched()LaunchActivatedEventArgsargument.Expected behavior
The debug visualizer shows object properties based on metadata.
Screenshots
Notice the output message. To enable natvis diagnostics see documentation.
NuGet package version
1.1.3
Packaging type
Packaged (MSIX)
Windows version
Windows 11 version 21H2 (22000)
IDE
Visual Studio 2022
Additional context
A workaround is to manually copy the *.winmd files from
Microsoft.WindowsAppSDKto the executable folder.