9

WinUI 3.0 Debugging Tooling with Visual Studio

 3 years ago
source link: https://nicksnettravels.builttoroam.com/winui-3-0-debugging-tooling-with-visual-studio/?utm_campaign=Feed%3A+NicksNetTravels+%28Nick%27s+.NET+Travels%29
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

WinUI 3.0 Debugging Tooling with Visual Studio

Preview 4 of WinUI3.0 dropped recently and if you want to get started you’ll need the preview of Visual Studio and the WinUI project templates. One of the things I noticed was that some of the tool windows I was used to from UWP weren’t working as I expected. I recall hearing that Microsoft had … Continue reading “WinUI 3.0 Debugging Tooling with Visual Studio”

Preview 4 of WinUI3.0 dropped recently and if you want to get started you’ll need the preview of Visual Studio and the WinUI project templates.

One of the things I noticed was that some of the tool windows I was used to from UWP weren’t working as I expected. I recall hearing that Microsoft had been working on things like hot reload for WinUI, so I was surprised that I couldn’t edit XAML and for it to update in the running application.

It turns out that there’s a flag in the Options window (Tools menu, Options) in the Environment, Preview Features section entitled “Enable UI Debugging Tooling for WinUI 3 Projects”.

I’ve got no idea why this is off by default but if you turn it on you get almost instantaneous hot reload when you change your XAML (unless you do what I did which was to enter XAML that referenced a namespace that I hadn’t imported!).

e23d419a4b020b946d2a9d039d8cf680?s=49&d=mm&r=gAuthor NickPosted on February 17, 2021February 17, 2021Categories DevelopmentTags Debugging, Hot Reload, Visual Studio, WinUI, WinUIEverywhere

One thought on “WinUI 3.0 Debugging Tooling with Visual Studio”

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Comment

Name *

Email *

Website

Save my name, email, and website in this browser for the next time I comment.

Post navigation


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK