Merge pull request #1324 from dotnet/prkrishn/1305

Don't filter by TFM when building DependencyContext
This commit is contained in:
Pranav K 2016-02-09 14:50:57 -08:00
commit b0470fdebb

View file

@ -14,7 +14,7 @@ namespace Microsoft.Extensions.DependencyModel
{
public static DependencyContext Build(CommonCompilerOptions compilerOptions, LibraryExporter libraryExporter, string configuration, NuGetFramework target, string runtime)
{
var dependencies = libraryExporter.GetAllExports().Where(export => export.Library.Framework.Equals(target)).ToList();
var dependencies = libraryExporter.GetAllExports();
// Sometimes we have package and reference assembly with the same name (System.Runtime for example) thats why we
// deduplicating them prefering reference assembly