Pass an alc to Assembly.Load() in GetSatelliteAssembly() to avoid a stack walk. ...
authorZoltan Varga <vargaz@gmail.com>
Tue, 5 Jan 2021 23:48:50 +0000 (18:48 -0500)
committerGitHub <noreply@github.com>
Tue, 5 Jan 2021 23:48:50 +0000 (18:48 -0500)
src/mono/netcore/System.Private.CoreLib/src/System/Reflection/RuntimeAssembly.cs

index f9434d7..602cdc6 100644 (file)
@@ -396,7 +396,7 @@ namespace System.Reflection
             try
             {
                 StackCrawlMark unused = default;
-                res = Load(an, ref unused, null);
+                res = Load(an, ref unused, AssemblyLoadContext.GetLoadContext(assembly));
             }
             catch
             {