Closed scottaddie closed 4 years ago
There is a bug in Visual Studio 16.5 Preview 1 that causes this error. It has been fixed for Preview 2.
It shouldn't affect 16.4, though. Did you still have the project open in 16.5 when you tested that? If the same project is opened in two instances of VS, the browser has to choose one of them to connect to, and it's usually the one that was opened first.
@jodavis I did still have the project open in 16.5. I've confirmed that everything works as expected if I only have the project open in 16.4.
Good to hear it's working in 16.4. The bug in 16.5 is fixed in Preview 2, which will be released soon. I recommend checking here for updates: https://developercommunity.visualstudio.com/content/problem/850188/browserlink-not-working-in-1650-preview-10.html
I've tested with both VS 2019 Enterprise 16.4.2 and VS 2019 Enterprise 16.5.0 Preview 1.0. Browser Link isn't working for me in either version.
Steps to reproduce:
In VS 2019, go to File -> New -> Project
Create an ASP.NET Core 3.1 Razor Pages app named WebApplication1
Add the following package refs to the project file:
Replace the contents of Startup.cs with the following code:
Open the Browser Link Dashboard window, click Enable Browser Link, and click View in Browser.
Open the browser developer tools (Chrome in this case) and view the Console tab. Notice the following error message: