* Add LoadFrom dependencies to the LoadFrom list
* Add a comment
AssemblyName requestedAssemblyName = new AssemblyName(args.Name);
string requestedAssemblyPath = Path.Combine(Path.GetDirectoryName(requestorPath), requestedAssemblyName.Name+".dll");
- return AssemblyLoadContext.Default.LoadFromAssemblyPath(requestedAssemblyPath);
+ // Load the dependency via LoadFrom so that it goes through the same path of being in the LoadFrom list.
+ return Assembly.LoadFrom(requestedAssemblyPath);
}
public static Assembly LoadFrom(String assemblyFile)