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

后端 未结 3 1527
傲寒
傲寒 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:29

    Turns out it was Visual Studio intellisense being wrong.

    I added the Microsoft.VisualStudio.Web.BrowserLink nuget package but visual studio still underlined app.UseBrowserLink() as undefined. Added using Microsoft.VisualStudio.Web.BrowserLink which VS also underlined as unknown reference, but in fact despite VS underlining it as an error it compiles fine and now BrowserLink works.

提交回复
热议问题