From 8c7d91177742e150b91f11cf37da84b8f80f6620 Mon Sep 17 00:00:00 2001 From: Steve MacLean Date: Fri, 29 Mar 2019 19:33:37 -0400 Subject: [PATCH] Assembly.Load ALC name (#23574) Use normalized path for ALC name --- src/System.Private.CoreLib/shared/System/Reflection/Assembly.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/System.Private.CoreLib/shared/System/Reflection/Assembly.cs b/src/System.Private.CoreLib/shared/System/Reflection/Assembly.cs index 9b3a9d8..3db428e 100644 --- a/src/System.Private.CoreLib/shared/System/Reflection/Assembly.cs +++ b/src/System.Private.CoreLib/shared/System/Reflection/Assembly.cs @@ -254,7 +254,7 @@ namespace System.Reflection if (s_loadfile.TryGetValue(normalizedPath, out result)) return result; - AssemblyLoadContext alc = new IndividualAssemblyLoadContext(string.Format("Assembly.LoadFile({0})", path)); + AssemblyLoadContext alc = new IndividualAssemblyLoadContext(string.Format("Assembly.LoadFile({0})", normalizedPath)); result = alc.LoadFromAssemblyPath(normalizedPath); s_loadfile.Add(normalizedPath, result); } -- 2.7.4