Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 2f52d2f

Browse files
committed
Add probe for lower case culture name
1 parent 6feafca commit 2f52d2f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/System.Private.CoreLib/shared/System/Runtime/Loader/AssemblyLoadContext.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,15 @@ public void Dispose()
582582
{
583583
return parentALC.LoadFromAssemblyPath(assemblyPath);
584584
}
585+
else if (Path.IsCaseSensitive)
586+
{
587+
assemblyPath = Path.Combine(parentDirectory, cultureName.ToLowerInvariant(), $"{assemblyName.Name}.dll");
588+
589+
if (Internal.IO.File.InternalExists(assemblyPath))
590+
{
591+
return parentALC.LoadFromAssemblyPath(assemblyPath);
592+
}
593+
}
585594

586595
return null;
587596
}

0 commit comments

Comments
 (0)