From 0541dc70de60f0b1a31fd5e68fea5cb447aff27b Mon Sep 17 00:00:00 2001 From: Jan Kotas Date: Mon, 10 Aug 2026 18:54:16 -0700 Subject: [PATCH 1/2] ILVerify: Use case-insensitive comparer for assembly binding cache ILVerify assembly binding should runtime assembly binding that is case-insensitive. --- src/coreclr/tools/ILVerify/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coreclr/tools/ILVerify/Program.cs b/src/coreclr/tools/ILVerify/Program.cs index a0fdd9b8e3733a..d8cdda639e014f 100644 --- a/src/coreclr/tools/ILVerify/Program.cs +++ b/src/coreclr/tools/ILVerify/Program.cs @@ -18,7 +18,7 @@ namespace ILVerify { internal sealed class Program : IResolver { - private readonly Dictionary _resolverCache = new(); + private readonly Dictionary _resolverCache = new(StringComparer.InvariantCultureIgnoreCase); private readonly ILVerifyRootCommand _command; private readonly Dictionary _inputFilePaths; // map of simple name to file path private readonly Dictionary _referenceFilePaths; // map of simple name to file path From 09707da744bdbc5bce534faee85cea9963571b6a Mon Sep 17 00:00:00 2001 From: Jan Kotas Date: Mon, 10 Aug 2026 18:59:29 -0700 Subject: [PATCH 2/2] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- src/coreclr/tools/ILVerify/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coreclr/tools/ILVerify/Program.cs b/src/coreclr/tools/ILVerify/Program.cs index d8cdda639e014f..823975637f30e7 100644 --- a/src/coreclr/tools/ILVerify/Program.cs +++ b/src/coreclr/tools/ILVerify/Program.cs @@ -18,7 +18,7 @@ namespace ILVerify { internal sealed class Program : IResolver { - private readonly Dictionary _resolverCache = new(StringComparer.InvariantCultureIgnoreCase); + private readonly Dictionary _resolverCache = new(StringComparer.OrdinalIgnoreCase); private readonly ILVerifyRootCommand _command; private readonly Dictionary _inputFilePaths; // map of simple name to file path private readonly Dictionary _referenceFilePaths; // map of simple name to file path