In visual studio 2019 while working with asp.net core 3.1 mvc, Following steps worked for me to configure browser auto load on save.
Step1
Enable run time compilation of your views by adding following NuGet package and then configuring it in Startup.cs file.
NuGet package:
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation
add following line in ConfigureServices()
method in startup.cs
services.AddRazorPages().AddRazorRuntimeCompilation();
Step2:
add following NuGet package
Microsoft.VisualStudio.Web.BrowserLink
and then add
app.UseBrowserLink();
in Configure()
method in Startup.cs file.
That's it.