Skip to content

Commit d00a0a2

Browse files
jkotasCopilot
andauthored
ILVerify: Use case-insensitive comparer for assembly binding cache (#132108)
ILVerify assembly binding should runtime assembly binding that is case-insensitive. This is fixing a non-obvious failure mode caused by mismatched casing for `--system-module` ILVerify argument. We ended up loading the system module multiple times with different casing. --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent cb0ca14 commit d00a0a2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/coreclr/tools/ILVerify/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ namespace ILVerify
1818
{
1919
internal sealed class Program : IResolver
2020
{
21-
private readonly Dictionary<string, PEReader> _resolverCache = new();
21+
private readonly Dictionary<string, PEReader> _resolverCache = new(StringComparer.OrdinalIgnoreCase);
2222
private readonly ILVerifyRootCommand _command;
2323
private readonly Dictionary<string, string> _inputFilePaths; // map of simple name to file path
2424
private readonly Dictionary<string, string> _referenceFilePaths; // map of simple name to file path

0 commit comments

Comments
 (0)