5

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.

Herman
  • 2,832
  • 6
  • 25
  • 37
  • I found a thread about it here: https://developercommunity.visualstudio.com/content/problem/793030/browserlink-not-updating-page-on-save.html. I just updated to Visual Studio 16.4.0 and the problem still there with .NET Core 3.1. :-/ – Juan Carlos Puerto Dec 04 '19 at 11:27
  • T___T this make the developing process very tedious and slow now. – Herman Dec 05 '19 at 09:57

1 Answers1

7

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

Juan Carlos Puerto
  • 2,632
  • 1
  • 26
  • 22