-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Obsolete old HTTP APIs #33125
Comments
@scalablecory can you please provide guidance / options here? (the latest status of this feature) |
I left some feedback on #41526 that likely applies to all of the obsoletions here. I'll take a look at the other PRs though. |
Reopening to help track the documentation. |
When this is worked on to track the documentation, please also see #41759, where I provided some other feedback. |
Should this have been closed by dotnet/dotnet-api-docs#4731? The literal comment is |
Probably not -- that might have been a false positive auto-close because of I do think this will get wrapped up with dotnet/docs#23915 though, and when the |
The documentation page is in place and the aka.ms link is configured to point to it. |
ObsoleteAttribute
will be getting an update to support diagnostic IDs and URLs to help IDEs better manage obsolete API usage.We should consider annotating
WebRequest
andWebClient
with this. I frequently see asks for help with HTTP in .NET, and it's not uncommon to find them using one of these APIs without knowing we prefer them useHttpClient
instead.Something like
I would not want to create excessive warnings for users porting Framework apps to .NET 5, so this is predicated on IDE/compiler being updated to allow ignoring specific diagnostic IDs application-wide.
https://docs.microsoft.com/en-us/dotnet/core/compatibility/fx-core#webrequest-is-not-recomended-for-new-development(a dedicated SYSLIB documentation page was created instead)The text was updated successfully, but these errors were encountered: