VS2022 Blazor Server App Hot Reload notworking

Ben Junior 11 Reputation points
2022-06-30T02:59:27.973+00:00

Using VS2022 V 17.2.5 NetCore 6 and Blazor Server side app. I created a standard web project (Blazor1App) and run without debuging (Ctrl+F5) The app launches and then on Index page I change <h1>Hello, world!</h1> to <h1>Hello, world! HHHHHHHHHHHHHH</h1> and save the changes (Ctrl+S) I have Hot Reload on File Save and then the following window pops up

216352-capture.png

Developer technologies .NET Blazor
Developer technologies Visual Studio Other
{count} votes

1 answer

Sort by: Most helpful
  1. Ben Junior 11 Reputation points
    2022-06-30T14:39:58.113+00:00

    Hi,
    The error message goes away if the "Enable Hot Reload and Edit and Continue when debugging" is checked and the Hot Reload works. This box was unchecked and it become checked after I run the repair as you mentioned. Previously, only the "Enable Hot Reload when starting without debugging" was checked and I thought that was OK.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.