BrowserLink tooling doesn't work with ASP.NET Core 2.1?

后端 未结 3 1521
傲寒
傲寒 2021-02-14 04:59

Since upgrading to ASP.NET Core 2.1 inside Visual Studio 2017 BrowserLink no longer works. If I use the base \"ASP.NET Core Web Application\" template, choosing to target ASP.NE

3条回答
  •  我在风中等你
    2021-02-14 05:32

    I had similar problem after upgrading to ASPNET Core 2.1. To solve the problem, I have uninstalled the Visual Studio extension I had installed, and then installed the following package via PM:

    Install-Package Microsoft.VisualStudio.Web.BrowserLink -Version 2.2.0
    

    After that, I added the command

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

    and it started working back!

    Hope this helps!

提交回复
热议问题