Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

Commit

Permalink
Merge pull request #6004 from CoskunSunali/dev
Browse files Browse the repository at this point in the history
Avoid entry point assembly being loaded twice during assembly parts discovery
  • Loading branch information
davidfowl authored Mar 23, 2017
2 parents f3ee406 + 11d265b commit d2430f0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public static class DefaultAssemblyPartDiscoveryProvider
public static IEnumerable<ApplicationPart> DiscoverAssemblyParts(string entryPointAssemblyName)
{
var entryAssembly = Assembly.Load(new AssemblyName(entryPointAssemblyName));
var context = DependencyContext.Load(Assembly.Load(new AssemblyName(entryPointAssemblyName)));
var context = DependencyContext.Load(entryAssembly);

return GetCandidateAssemblies(entryAssembly, context).Select(p => new AssemblyPart(p));
}
Expand Down

0 comments on commit d2430f0

Please sign in to comment.