visual-studio-2015asp.net-coreasp.net-core-mvcweb-essentialsbrowser-link

Web Essentials Browser Link not Working in Visual Studio 2015 for only ASP.net 5 applications


Installed Web Essentials in my new computer but I cannot get Browser Link working with ASP.NET 5 / MVC6 web Applications projects. Works Fine with ASP.NET 4.5 however. This is what I have tried so far.

My project.json has following dependencies already when I create the project

 "Microsoft.VisualStudio.Web.BrowserLink.Loader": "14.0.0-rc1-final"

My Startup.cs class also already has configured BrowserLink (I am running in DEV env)

if (env.IsDevelopment())
{
   app.UseBrowserLink();
   app.UseDeveloperExceptionPage();
}

I have enabled Browser Link form toolbar

Enabled Browser Link from toolbar

Non worked.. When I run the app pressing F5, the browser link dashboard doesn't detect any browser. says 0 connections.

enter image description here

I have also tried uninstalling Web Essentials and reinstalling. Also tried using Web Essential Nightly build.

Re-intalling Visual Studio did not helped either.

Anything else that I might be missing? I am using VS2015 community on Windows 10 machine. I have another computer with similar setup works fine in that computer. I tried creating project in My other computer where browser link was working and copied the project to this computer, That did not help either.


Solution

  • Oh, I just remembered. It could be related to known issue #3 here: https://github.com/aspnet/Tooling/blob/master/known-issues.md


    EDIT: The link above is broken now because it referred to a setup bug in a prerelease version of the ASP.NET 5 tools, which is obsolete and no longer available. If you are using ASP.NET Core with VS 2015 and Browser Link doesn't work, it's not because of this issue.

    However, if you have the old release and you are hitting this issue, the fix was to find the ASP.NET 5 bundle in Add/Remove Programs, and "Repair" it.