Assembly.Load ALC name (#23574)
authorSteve MacLean <stmaclea@microsoft.com>
Fri, 29 Mar 2019 23:33:37 +0000 (19:33 -0400)
committerGitHub <noreply@github.com>
Fri, 29 Mar 2019 23:33:37 +0000 (19:33 -0400)
Use normalized path for ALC name

src/System.Private.CoreLib/shared/System/Reflection/Assembly.cs

index 9b3a9d8..3db428e 100644 (file)
@@ -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);
             }