Skip to content

Commit e805e47

Browse files
Add SYSLIB0056 to list of diagnostics
Co-authored-by: Stephen Toub <stoub@microsoft.com>
1 parent 5bf04bd commit e805e47

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

docs/project/list-of-diagnostics.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ The PR that reveals the implementation of the `<IncludeInternalObsoleteAttribute
110110
| __`SYSLIB0053`__ | AesGcm should indicate the required tag size for encryption and decryption. Use a constructor that accepts the tag size. |
111111
| __`SYSLIB0054`__ | Thread.VolatileRead and Thread.VolatileWrite are obsolete. Use Volatile.Read or Volatile.Write respectively instead. |
112112
| __`SYSLIB0055`__ | The underlying hardware instruction does not perform a signed saturate narrowing operation, and it always returns an unsigned result. Use the unsigned overload instead. |
113+
| __`SYSLIB0056`__ | LoadFrom with a custom AssemblyHashAlgorithm is obsolete. Use overloads without an AssemblyHashAlgorithm. |
113114
| __`SYSLIB0057`__ | Loading certificate data through the constructor or Import is obsolete. Use X509CertificateLoader instead to load certificates. |
114115

115116
## Analyzer Warnings

src/libraries/Common/src/System/Obsoletions.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,5 +183,8 @@ internal static class Obsoletions
183183

184184
internal const string X509CtorCertDataObsoleteMessage = "Loading certificate data through the constructor or Import is obsolete. Use X509CertificateLoader instead to load certificates.";
185185
internal const string X509CtorCertDataObsoleteDiagId = "SYSLIB0057";
186+
187+
// When adding a new diagnostic ID, add it to the table in docs\project\list-of-diagnostics.md as well.
188+
// Keep new const identifiers above this comment.
186189
}
187190
}

0 commit comments

Comments
 (0)