Merge pull request #2306 from dotnet/pakrym/platform-in-target

Alow type platform to be in target dependencies
This commit is contained in:
Pavel Krymets 2016-04-06 13:26:12 -07:00
commit f49d95c47d

View file

@ -145,8 +145,9 @@ 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>())