Skip to content

Commit

Permalink
Pass an alc to Assembly.Load() in GetSatelliteAssembly() to avoid a s…
Browse files Browse the repository at this point in the history
…tack walk. (dotnet#46534)
  • Loading branch information
vargaz committed Jan 5, 2021
1 parent 5f984ae commit 15eabd9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ public override Assembly GetSatelliteAssembly(CultureInfo culture, Version? vers
try
{
StackCrawlMark unused = default;
res = Load(an, ref unused, null);
res = Load(an, ref unused, AssemblyLoadContext.GetLoadContext(assembly));
}
catch
{
Expand Down

0 comments on commit 15eabd9

Please sign in to comment.