Skip to content

SignedXml: drop .NET 12 InvalidOperationException documentation - #13054

Open
krwq wants to merge 1 commit into
dotnet:mainfrom
krwq:revert-signedxml-single-use-docs
Open

SignedXml: drop .NET 12 InvalidOperationException documentation#13054
krwq wants to merge 1 commit into
dotnet:mainfrom
krwq:revert-signedxml-single-use-docs

Conversation

@krwq

@krwq krwq commented Sep 3, 2026

Copy link
Copy Markdown
Member

The dotnet/runtime PR that would have thrown InvalidOperationException on SignedXml instance reuse in .NET 12 (dotnet/runtime#132836) has been closed and is not going to ship.

This PR removes the .NET 12-specific documentation added in #13042:

  • The 10 <exception cref="T:System.InvalidOperationException"> entries across ComputeSignature, CheckSignature, CheckSignatureReturningKey, LoadXml, AddReference, and AddObject.
  • The "Starting in .NET 12, calling ... throws InvalidOperationException" sentence in the Instances are single-use remarks section.

The general guidance that a SignedXml instance is not intended to be reused across multiple signing or verification operations remains correct on all supported .NET versions and stays.

Companion cleanup PR in dotnet/docs for the how-to callouts.


Internal previews

File Preview link
xml/System.Security.Cryptography.Xml/SignedXml.xml Learn preview

Build report

The dotnet/runtime PR that would have thrown InvalidOperationException on SignedXml instance reuse in .NET 12 (dotnet/runtime#132836) has been closed and is not going to ship. Remove the 10 <exception cref="T:System.InvalidOperationException"> entries added across ComputeSignature, CheckSignature, CheckSignatureReturningKey, LoadXml, AddReference, and AddObject, and drop the .NET 12-specific sentence from the `Instances are single-use` remarks section. The general guidance that a SignedXml instance is not intended to be reused across multiple signing or verification operations remains correct and stays.
Copilot AI lite review requested due to automatic review settings September 3, 2026 06:10
@krwq
krwq requested a review from a team as a code owner September 3, 2026 06:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The changes consistently remove now-inaccurate version-specific exception documentation without introducing formatting or content inconsistencies in the remaining guidance.

Pull request overview

This PR updates the API reference documentation for System.Security.Cryptography.Xml.SignedXml to remove .NET 12-specific guidance about throwing InvalidOperationException on instance reuse, since the corresponding runtime change will not ship. It keeps the general (version-agnostic) guidance that SignedXml instances are intended to be single-use per signing/verification operation.

Changes:

  • Removed the .NET 12-specific sentence describing InvalidOperationException behavior for SignedXml instance reuse.
  • Removed multiple <exception cref="T:System.InvalidOperationException"> entries that were tied to the canceled .NET 12 behavior.
  • Retained and simplified the “Instances are single-use” guidance to focus on correctness rather than a version-specific exception.
File summaries
File Description
xml/System.Security.Cryptography.Xml/SignedXml.xml Removes .NET 12-specific InvalidOperationException documentation while keeping general single-use guidance for SignedXml.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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.

2 participants