1

I read about the Auto-refresh capability introduced in ASP.NET Core 5 with .NET 5. I upgraded my Blazor site to .NET 5, and thought it would just work, but it doesn't seem to be working for me.

I used to use Westwind.AspNetCore.LiveReload, but I have removed it to try this out.

When I make a change, the app rebuilds and restarts web server for me, but the browser doesn't refresh. This is a project I upgraded from .NET Core 3.1. Is there anything that needs to be done in startup.cs to enable this? What else could be interfering? How can I troubleshoot?

Patrick Szalapski
  • 8,738
  • 11
  • 67
  • 129

1 Answers1

-1

You can livereload page using methods mentioned in that question answers .NET Core MVC Page Not Refreshing After Changes

Ali Hussain
  • 765
  • 8
  • 27
  • I was hoping to use the built-in functionality and avoid Westwind, as I noted in my question. – Patrick Szalapski Nov 23 '20 at 17:16
  • check this may help you https://stackoverflow.com/questions/53639969/net-core-mvc-page-not-refreshing-after-changes – Ali Hussain Nov 23 '20 at 17:18
  • The revision and link don't apply to the new auto-refresh capability just released in ASP.NET Core 5, part of .NET 5. For what it's worth, I already have .AddRazorRuntimeCompilation() on. Thanks for trying, though. – Patrick Szalapski Nov 23 '20 at 17:22