etienneoh
etienneoh

Reputation: 41

The XAML Hot Reload function in Visual Studio 2022 is not working in .xaml files

The XAML Hot Reload doesn't work for XAML files. I'm trying to simply change a text, and when I save and/or click on the Hot Reload button, the output says "No changes to code were made.". It does work for .xaml.cs but not .xaml. My project is barebones with the basic project template for .NET MAUI that invites you to click a button. The in-app toolbar also doesn't appear.

I have followed every steps from this page along with the more extensive troubleshooting page, with no luck.

I have tried launching the project as an admin, with no success. There is no error messages in my XAML code (since I have not changed it except for the text string) and there is no error messages from the Hot Reload. The only output from Hot Reload is "No changes to code were made." I have never seen the in-app toolbar.

Changes to the XAML can only be seen after closing and opening back up the window.

I am running Visual Studio 2022(net7.O-windows10.O.19041.O), everything is up to date with no updates available.

Upvotes: 0

Views: 730

Answers (1)

Alexandar May - MSFT
Alexandar May - MSFT

Reputation: 10156

To begin with, you can walk through Troubleshooting XAML Hot Reload.

In addition, please upgrade your Visual Studio 2022 to the latest version which may resolve the The XAML Hot Reload issue.

Furthermore, if above workarounds still don't work, I suggest you directly report it to VS Product Team, from VS > Help > Send Feedback > Report a Problem

Upvotes: 0

Related Questions