Edit

Cryptography obsoletions (.NET 11)

Some cryptography APIs are marked as obsolete, starting in .NET 11.

For obsoletions in other core .NET library areas, see API obsoletions with non-default diagnostic IDs (.NET 11).

Previous behavior

Previously, you could use these APIs without any compile-time warnings about obsoletion.

New behavior

In .NET 11 and later versions, using these APIs produces a compile-time diagnostic.

The following table lists the custom diagnostic IDs and their corresponding warning messages.

Diagnostic ID Description Severity
SYSLIB0065 The set accessor of AsnEncodedData.RawData is obsolete. Use the constructor of the appropriate type to decode data, or use AsnEncodedData.CopyFrom(AsnEncodedData) for mutable scenarios. Warning

Version introduced

.NET 11 Preview 6

Type of breaking change

These obsoletions can affect source compatibility.

If you must keep use the obsolete APIs, suppress the warning by using the custom diagnostic ID.

Affected APIs

SYSLIB0065

See also