From c31b9fe5c1066739a8e0d4bc1d7fa03edfc8fa1a Mon Sep 17 00:00:00 2001 From: Pranav K Date: Tue, 9 Feb 2016 12:33:47 -0800 Subject: [PATCH] Don't filter by TFM when building DependencyContext Fixes #1305 --- src/Microsoft.DotNet.ProjectModel/DependencyContextBuilder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.DotNet.ProjectModel/DependencyContextBuilder.cs b/src/Microsoft.DotNet.ProjectModel/DependencyContextBuilder.cs index de5cd3394..5a261e5b7 100644 --- a/src/Microsoft.DotNet.ProjectModel/DependencyContextBuilder.cs +++ b/src/Microsoft.DotNet.ProjectModel/DependencyContextBuilder.cs @@ -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