Skip to content

Document breaking change: AsnEncodedData.RawData setter obsoleted (SYSLIB0065) in .NET 11#54644

Draft
gewarren with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-obsolete-asn-encoded-data-setter
Draft

Document breaking change: AsnEncodedData.RawData setter obsoleted (SYSLIB0065) in .NET 11#54644
gewarren with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-obsolete-asn-encoded-data-setter

Conversation

Copilot AI commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

In .NET 11 Preview 6, AsnEncodedData.RawData's setter was marked [Obsolete] (SYSLIB0065) because setting it on derived types (e.g., X509BasicConstraintsExtension) silently desynchronizes the cached decoded state from the raw data—since RawData is non-virtual, derived types can't react to the change.

X509BasicConstraintsExtension decoded = new();
decoded.RawData = extension.RawData; // SYSLIB0065 warning

// Stale cached decode—prints False/False/0 despite the data being set
Console.WriteLine(decoded.CertificateAuthority);

Changes

  • New: docs/core/compatibility/cryptography/11/asnencodeddata-rawdata-setter-obsolete.md — breaking change article covering previous/new behavior, reason, and recommended actions (use constructor or CopyFrom)
  • New: docs/fundamentals/syslib-diagnostics/syslib0065.md — SYSLIB0065 diagnostic reference with workarounds and suppression guidance
  • Updated: docs/fundamentals/syslib-diagnostics/obsoletions-overview.md — adds SYSLIB0065 row to the table
  • Updated: docs/core/compatibility/11.md — adds entry under Cryptography
  • Updated: docs/core/compatibility/toc.yml — adds new article under .NET 11 Cryptography
  • Updated: docs/navigate/tools-diagnostics/toc.yml — adds SYSLIB0065 entry

Copilot AI requested review from Copilot and removed request for Copilot July 5, 2026 17:45
Copilot AI linked an issue Jul 5, 2026 that may be closed by this pull request
3 tasks
Copilot AI requested review from Copilot and removed request for Copilot July 5, 2026 17:49
Copilot AI changed the title [WIP] Fix obsolete setter for AsnEncodedData.RawData Document breaking change: AsnEncodedData.RawData setter obsoleted (SYSLIB0065) in .NET 11 Jul 5, 2026
Copilot AI requested a review from gewarren July 5, 2026 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Breaking change]: AsnEncodedData.RawData's setter is obsolete

2 participants