Skip to content

Commit

Permalink
Use Asselble.LoadFrom instead of Assembly.LoadFile
Browse files Browse the repository at this point in the history
  • Loading branch information
dbeuchler committed Aug 25, 2021
1 parent e0ec447 commit 6f764ce
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Moryx/Tools/AppDomainBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ public static void LoadAssemblies()

try
{
var assembly = Assembly.LoadFile(assemblyFile);
AppDomain.CurrentDomain.Load(assembly.GetName());
Assembly.LoadFrom(assemblyFile);
}
catch(Exception ex)
{
Expand Down

0 comments on commit 6f764ce

Please sign in to comment.