2

Is it possible to enable live reload for Blazor Server Side app in Visual Studio?

By default, not only it does not reload, but does it not recompiles either. After I change a razor file and save in visual studio, refresh in browser does nothing

Liero
  • 25,216
  • 29
  • 151
  • 297
  • Duplicate of https://stackoverflow.com/questions/58172922/is-there-any-hot-reload-for-blazor-server-side – Rich Bryant Feb 07 '20 at 10:49
  • It's not duplicate, because the command line does not start Visual Studio debugging session – Liero Feb 07 '20 at 11:26
  • 1
    @Liero you asked for live reload, the referenced question does what you want. If you want debugging and reload you're kind of asking about Edit-and-Continue, which isn't supported – Quango Feb 07 '20 at 14:37
  • Isn't edit then continue what we mean by Live Reload? As with Xamarin. – David Jones Jul 23 '20 at 06:11
  • OK due in Nov with .NET 5. – David Jones Jul 23 '20 at 06:13
  • @Quango: Edit and Continue is not live reload, because you have to actually hit breakpoint to do any changes. besides it does not work with async stuff in blazor. – Liero Feb 23 '21 at 08:21

1 Answers1

0

As of .NET 6.0 Preview 3 there is now a Hot Reload capability.

Blog article introducing this at https://devblogs.microsoft.com/aspnet/asp-net-core-updates-in-net-6-preview-3/

Quango
  • 12,338
  • 6
  • 48
  • 83