How to make BrowserLink work with .NET Core in Visual Studio 2017?

267 Views Asked by At

BrowserLink doesn't seem to work with .NET Core 2.1.5 at all.

Per similar question about a somewhat earlier version of the .NET Core, I got the Microsoft.VisualStudio.Web.BrowserLink package from nuget and now, under Dependencies/Nuget, it displays this reference twice: once under Microsoft.AspNetCore.All and once on its own.

enter image description here

Oddly enough, the BrowserLink code is injected into the web page, but whenever I save a change to .cshtml file or a css file, no refresh happens.

If I click Refresh on the Browser Link Dashboard, it asks me if I want to stop debugging.

enter image description here enter image description here

Is BrowserLink simply broken for .NET Core or am I missing something simple?

1

There are 1 best solutions below

1
On

Dunno if you still need this but running as debug is different than the browser link. Here is an snippit showing the difference between browse and debug You can either Debug or Browse.