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