Alow type platform to be in target dependencies

This commit is contained in:
Pavel Krymets 2016-04-06 10:35:55 -07:00
parent 722cd3b681
commit 567d1fa19d

View file

@ -146,7 +146,8 @@ namespace Microsoft.DotNet.ProjectModel
return this;
}
var standalone = !ProjectFile.Dependencies.Any(d => d.Type.Equals(LibraryDependencyType.Platform));
var standalone = !RootProject.Dependencies
.Any(d => d.Type.Equals(LibraryDependencyType.Platform));
var context = CreateBuilder(ProjectFile.ProjectFilePath, TargetFramework)
.WithRuntimeIdentifiers(standalone ? runtimeIdentifiers : Enumerable.Empty<string>())