Alow type platform to be in target dependencies
This commit is contained in:
parent
722cd3b681
commit
567d1fa19d
1 changed files with 3 additions and 2 deletions
|
@ -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>())
|
||||
|
|
Loading…
Reference in a new issue