From 5474d3f031aad880ff3e92759bffcf337a4a505c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 13 Feb 2026 00:53:37 +0000 Subject: [PATCH 1/2] Initial plan From 2ebf2491e42fd96216876eaa781b61b43675af1f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 13 Feb 2026 01:01:46 +0000 Subject: [PATCH 2/2] Rename MaxReferencesPerSignedInfo AppContext switch to include .Xml namespace Co-authored-by: PranavSenthilnathan <12225508+PranavSenthilnathan@users.noreply.github.com> --- .../System/Security/Cryptography/Xml/LocalAppContextSwitches.cs | 2 +- .../System.Security.Cryptography.Xml/tests/SignedXml_Limits.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libraries/System.Security.Cryptography.Xml/src/System/Security/Cryptography/Xml/LocalAppContextSwitches.cs b/src/libraries/System.Security.Cryptography.Xml/src/System/Security/Cryptography/Xml/LocalAppContextSwitches.cs index 9c047f838b4a8d..888a98e13f2eb4 100644 --- a/src/libraries/System.Security.Cryptography.Xml/src/System/Security/Cryptography/Xml/LocalAppContextSwitches.cs +++ b/src/libraries/System.Security.Cryptography.Xml/src/System/Security/Cryptography/Xml/LocalAppContextSwitches.cs @@ -12,7 +12,7 @@ internal static partial class LocalAppContextSwitches private static int InitializeMaxReferencesPerSignedInfo() { const int DefaultMaxReferencesPerSignedInfo = 100; - object? data = AppContext.GetData("System.Security.Cryptography.MaxReferencesPerSignedInfo"); + object? data = AppContext.GetData("System.Security.Cryptography.Xml.MaxReferencesPerSignedInfo"); if (data is null) { diff --git a/src/libraries/System.Security.Cryptography.Xml/tests/SignedXml_Limits.cs b/src/libraries/System.Security.Cryptography.Xml/tests/SignedXml_Limits.cs index 9ba1212a1f62f1..563b114cf32a3d 100644 --- a/src/libraries/System.Security.Cryptography.Xml/tests/SignedXml_Limits.cs +++ b/src/libraries/System.Security.Cryptography.Xml/tests/SignedXml_Limits.cs @@ -13,7 +13,7 @@ public class SignedXml_Limits { private const int MaxTransformsPerReference = 10; private const int DefaultMaxReferencesPerSignedInfo = 100; - private const string MaxReferencesPerSignedInfoAppContextSwitch = "System.Security.Cryptography.MaxReferencesPerSignedInfo"; + private const string MaxReferencesPerSignedInfoAppContextSwitch = "System.Security.Cryptography.Xml.MaxReferencesPerSignedInfo"; [Theory] [InlineData(1, 1, false)]