After using VS 2022 preview for several iterations I removed it and installed VS 2022 Current when it became available.
Existing Blazor hosted application does not Hot reload on file save or on pressing Hot reload button. It was reloading "fine" in preview versions. It does not matter if I run it with or without debugging.
New application created with newly installed version does Hot reload.
I don't see any important difference in *.csproj or launchSettings.json files. They both target net6.0. I also removed .vs directory and cleaned solution.
Only difference there is is that my projects are using Program.cs and Startup.cs vs only Program.cs in new application template, but that does not matter. Or, does it?
What is preventing Visual Studio from Hot reloading existing application?
UPDATE
Switching to single Program.cs and WebApplication builder did help somewhat. Now hot reload works without debugging. With debugging VS says it applied changes but they are not applied on screen.
Still I would like to know why is this change necessary and how to enable Hot reload while debugging?