Use new DiagnosticId attributes in obsolete APIs
Open
area-networking
enhancement
- Dominant language
- C#
- Stars
- 38.4k
- Forks
- 10.9k
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 281
Description
From https://github.com/dotnet/aspnetcore/issues/27529#issuecomment-729878872.
> We may also want to use the new `[Obsolete]` `DiagnosticId` property. The dotnet/runtime team is using this extensively. See https://github.com/dotnet/runtime/blob/329f0dbfa3a164ee2e3bf9f75b7641165995c799/src/libraries/Common/src/System/Obsoletions.cs and e.g. https://github.com/dotnet/runtime/blob/329f0dbfa3a164ee2e3bf9f75b7641165995c799/src/libraries/System.Security.Permissions/src/System/Security/SecurityManager.cs#L10
This would allow us to create a unified experience for documenting obsolete APIs in the repo.
Contributor guide
Assessment
This issue has not been assessed yet.