make assembly names case-insensitive for the game context

This commit is contained in:
zznty
2025-05-10 19:39:50 +07:00
parent 10b0a22a48
commit 6dcf21d03e

View File

@@ -10,7 +10,9 @@ public class GameDirectoryAssemblyLoadContext : AssemblyLoadContext, ICoreLoadCo
{
private readonly string _dir;
private static readonly ImmutableHashSet<string> ReferenceAssemblies = ["netstandard"];
private readonly Dictionary<string, string> _assemblyNames = [];
// Assembly simple names are case-insensitive per the runtime behavior
// (see SimpleNameToFileNameMapTraits for the TPA lookup hash).
private readonly Dictionary<string, string> _assemblyNames = new(StringComparer.OrdinalIgnoreCase);
public GameDirectoryAssemblyLoadContext(string dir) : base("CringeBootstrap")
{