-
Notifications
You must be signed in to change notification settings - Fork 471
Natvis for C++/WinRT doesn't work #2809
Copy link
Copy link
Closed
microsoft/cppwinrt
#1631Labels
area-DeveloperToolsIssues related to authoring (source and IDL), debugging, HotReload, LiveVisualTree, VS integrationIssues related to authoring (source and IDL), debugging, HotReload, LiveVisualTree, VS integrationbugSomething isn't workingSomething isn't working
Description
Activity
Metadata
Metadata
Assignees
Labels
area-DeveloperToolsIssues related to authoring (source and IDL), debugging, HotReload, LiveVisualTree, VS integrationIssues related to authoring (source and IDL), debugging, HotReload, LiveVisualTree, VS integrationbugSomething isn't workingSomething isn't working
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.