You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Consider marking net5.0 obsoleted APIs obsolete in downlevel targets for OOB packages #43484
Many APIs are being obsoleted in .NET 5. During the PR review for marking those obsoletions, the question was raised for whether or not we should apply the obsoletions to OOB packages with downlevel targets such as netstandard2.0 and netcoreapp2.0.
Decide if we want to apply a downlevel [Obsolete] attribute without the DiagnosticId/UrlFormat properties, apply an [Obsolete] attribute without those properties (triggering CS0618), or implement compiler support for internally-defined System.Obsolete attributes with the new properties.
Extract the list of downlevel-targeted APIs from the obsoletions in .NET 5
This is specifically referring to APIs we actively ship from dotnet/runtime in nuget packages that have downlevel assets? I'd expect the list of obsoletions there to be very small (or empty?). Do you have some examples?
As part of #51721, I reviewed the APIs that were conditionally obsoleted only in net5.0+, and the set was limited to System.Security.Permissions and System.Reflection.MetadataLoadContext. The value of obsoleting these down-level is low and it would introduce possible breaking changes upstack. Those obsoletions will not be applied down-level.
With #51595 though, the obsoletion documentation now makes it clearer and easier to obsolete APIs down-level going forward.
Activity
Dotnet-GitSync-Bot commentedon Oct 16, 2020
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.
stephentoub commentedon Oct 16, 2020
This is specifically referring to APIs we actively ship from dotnet/runtime in nuget packages that have downlevel assets? I'd expect the list of obsoletions there to be very small (or empty?). Do you have some examples?
jeffhandley commentedon Apr 23, 2021
As part of #51721, I reviewed the APIs that were conditionally obsoleted only in net5.0+, and the set was limited to
System.Security.PermissionsandSystem.Reflection.MetadataLoadContext. The value of obsoleting these down-level is low and it would introduce possible breaking changes upstack. Those obsoletions will not be applied down-level.With #51595 though, the obsoletion documentation now makes it clearer and easier to obsolete APIs down-level going forward.