BrowserLink in .Net Core 3.0

1.4k views Asked by At

Upgrading .Net Core 2.2 to .Net Core 3.0 my browser link is become not working, anyone know how to troubleshoot.
Performing the edit cshtml and refresh the browser it didn't reflect the changes.

1

There are 1 answers

1
Juan Carlos Puerto On BEST ANSWER

The workaround suggested here helps:

  • Add the NuGet package Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation
  • Change services.AddControllersWithViews(); by services.AddControllersWithViews().AddRazorRuntimeCompilation();
  • After saving you need to click the Browser Link refresh button Ctrl+Alt+Enter but it's better than restarting the application

    enter image description here