Only load loadable assemblies

This commit is contained in:
David Fowler 2014-10-15 00:00:15 -07:00
parent 448ac5a0dc
commit d915994f0b
1 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,7 @@ namespace Microsoft.AspNet.Mvc
{
get
{
return GetCandidateLibraries().Select(Load);
return GetCandidateLibraries().SelectMany(l => l.LoadableAssemblies).Select(Load);
}
}
@ -47,9 +47,9 @@ namespace Microsoft.AspNet.Mvc
.Where(IsCandidateLibrary);
}
private static Assembly Load(ILibraryInformation library)
private static Assembly Load(AssemblyName assemblyName)
{
return Assembly.Load(new AssemblyName(library.Name));
return Assembly.Load(assemblyName);
}
private static bool IsCandidateLibrary(ILibraryInformation library)