Closed jtbrower closed 3 years ago
Related: https://github.com/aspnet/Announcements/issues/376, https://github.com/aspnet/Announcements/issues/450.
IHttpSendFileFeature has been obsolete since 3.0. Has there been no update to BrowserLink since 2.2? We will have to track down the owner and verify if it's still supported.
FYI @jodavis
We're working on a new solution for Browser Link in .NET 6.0 that won't require that package.
@Tratcher it surprised me as well to see how outdated it was. I typically live in the Desktop space so I thought I was overlooking something and that maybe there was an alternative to use with Visual Studio and Web Development. @jodavis thank you and to the others for such a fast response. Will there be previews of this package anytime soon?
@jtbrower It will be included in an upcoming preview build of VS 2022 (but not ready for Preview 2). Browser Link will work automatically when the project is launched from Visual Studio, so it won't be necessary to include a package in the project anymore.
@jodavis Sounds good, thank you.
This issue has been resolved and has not had any activity for 1 day. It will be closed for housekeeping purposes.
See our Issue Management Policies for more information.
Describe the bug
Please forgive me if my placement of this report should have been logged elsewhere, I am pressed for time, but wanted to share this information for the benefit of others who are excited for the Net6 performance gains and decide to move forward without knowing what they will leave behind.
Simply put, a once obsolete IHttpSendFileFeature API has been completely removed from Net6 leaving Microsoft.VisualStudio.Web.BrowserLink throwing exceptions and unable to be useful for Net6 development as far as I can tell at this time.
It seems that what little related information I could find speaks of using 'dot net watch', but has issues of its own. It does seem from what I read by @danroth27 that there are plans in the works for Net6, I just hope it happens sooner than later since the fall release time is coming quick.
Stack Trace
To Reproduce
As you know, using the BrowserLink library is as simple as calling 'UseBrowserLink()' so I have not gone through the trouble of creating a separate solution for you. I could not figure out who was in charge of the BrowserLink library, I am afraid you will say the Visual Studio team, but here is the version.
<PackageReference Include="Microsoft.VisualStudio.Web.BrowserLink" Version="2.2.0" />
Further technical details
dotnet --info
Summary
Again sorry for the quick post, but I am hoping that if nothing else, the next person who runs into this issue will come across this information with a search engine. As stated, I can use Net5 to develop the views and then switch to Net6, but it would be great if there was a working alternative for BrowserLink before the API was removed. Thanks for all the hard work you all do. Its been amazing to chase all of the improvements in the frameworks over the last 5 years.