Merge pull request #2306 from dotnet/pakrym/platform-in-target
Alow type platform to be in target dependencies
This commit is contained in:
commit
f49d95c47d
1 changed files with 3 additions and 2 deletions
|
@ -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>())
|
||||
|
|
Loading…
Reference in a new issue