Skip to content

Commit

Permalink
Avoid entry point assembly being loaded twice during assembly parts d…
Browse files Browse the repository at this point in the history
…iscovery.

Addresses aspnet#6003
  • Loading branch information
CoskunSunali committed Mar 22, 2017
1 parent d3daf3e commit 11d265b
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 11d265b

Please sign in to comment.