asp.netvisual-studiovisual-studio-2017browser-link

Browserlink CSS autosync not working ASP.NET Core 2.0


I cannot get the CSS to sync in ASP.NET Core 2.0.

Here's what I do:

I have the CSS autosync enabled, in the browserlink dashboard I can see the connected browser and I can also use the Refresh button on the dashboard

screen from VS .

Funny enough, when I create a new project using the classic old ASP.NET MVC template, CSS autosync does indeed work, however I cannot make it run on ASP.NET Core template

I've also tried installing the BrowserLink.Loader assembly and referencing thatone but to no avail...

Any help greatly appreciated


Solution

  • It looks like this is an open issue with Visual studio, and as of October "CSS Auto-Sync isn't supported on ASP.NET Core yet".

    Something you could try is to use Chrome's "add folder to workspace" feature as suggested here and you can also try enabling browser link for static files which has helped some people to make it work.

    You can also vote on this to encourage Microsoft to implement CSS autosync for ASP.NET Core.