I noticed the following behaviour in Visual Studio 2022 (version 17.0.0) with a .Net 6.0 Blazor project:
- Create a new Blazor WebAssembly project and DO NOT select the 'ASP.NET Core hosted' option.
- Run the application without debugging.
- Ensure Hot Reload is enabled
- Make a change to the CSS. You will notice the browser instantly displays the change without needing a refresh / reload.
Repeat the steps above but this time during step 1 select the 'ASP.NET Core hosted' option. Now the CSS hot reload functionality is not working, even though making a change to the razor page itself does still hot reload (such adding or changing a HTML element).
According to the documentation*, hot reload is supported by WebAssembly when running without a debugger. I can't understand why only the CSS hot reload does not work if the 'ASP.NET Core hosted' option is chosen. The CSS and server appear to be unrelated.

wwwrootdirectory. In my case I thought it was broken because my CSS files are in other directories and only copied towwwrootduring a normal Visual Studio build, so Hot Reload was NOT picking up my changes. To fix it, I now edit the CSS file inwwwrootwhile the app is running then copy the changes back to the original file location elsewhere in the project when happy.