Aspnetcore.docs: Browser Link in .NET Core 3 and later?

Created on 21 Dec 2019  Â·  10Comments  Â·  Source: dotnet/AspNetCore.Docs

The start of the page talks about .NET Core 2.0 and 2.1, and the referenced package (Microsoft.VisualStudio.Web.BrowserLink) hasn't been updated since March 2018. Is this still a thing in .NET Core 3 and later?


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Source - Docs.ms doc-enhancement

Most helpful comment

I confirm that it works fine.
You must add the NuGet package Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation
and a call to services.AddMvc().AddRazorRuntimeCompilation(); and app.UseBrowserLink();

All 10 comments

@mkArtakMSFT can we retire this browser link article?

@jodavis What's the current state of BrowserLink?

Why no answer ... hard question ?

@scottaddie Browser Link still works in .NET Core 3.

The package hasn't been updated because it only contains the hooks that Visual Studio uses to interact with the server. All the functional updates and bug fixes that have been needed are in Visual Studio itself.

Please don't remove the article. Visual Studio has fwlinks to it.

I confirm that it works fine.
You must add the NuGet package Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation
and a call to services.AddMvc().AddRazorRuntimeCompilation(); and app.UseBrowserLink();

@softlion That makes sense because Razor runtime compilation is an opt-in feature as of ASP.NET Core 3.0. It was removed from the shared framework because of the dependency on Roslyn, which was also removed from the shared framework. See https://docs.microsoft.com/aspnet/core/migration/22-to-30?view=aspnetcore-3.1&tabs=visual-studio#opt-in-to-runtime-compilation for more info.

I'll apply the necessary 3.0 updates to the doc.

@jodavis FYI, BrowserLink isn't working for me at all. See the issue I've logged at https://github.com/aspnet/BrowserLink/issues/104.

@scottaddie I'll follow up on your issue in aspnet/BrowserLink#104.

I used @softlion method and it fixed my browser link.

Was this page helpful?
0 / 5 - 0 ratings