From 41efe17367bc8bb51ba26b0253534cc672ac574a Mon Sep 17 00:00:00 2001 From: Wes Haggard Date: Thu, 29 Mar 2018 10:48:52 -0700 Subject: [PATCH] Fix identity package filtering We only want to filter out identity package builds on official builds that aren't windows x64, to avoid building and publishing them more then once in an official build. We also need to account for source-build which sets the OfficialBuildId property to replicate the official builds, so we also look at the DotNetBuildOffline property to determine that we should still build the identity package. --- src/.nuget/dir.traversal.targets | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/src/.nuget/dir.traversal.targets b/src/.nuget/dir.traversal.targets index e0bcdb8..52a33c4 100644 --- a/src/.nuget/dir.traversal.targets +++ b/src/.nuget/dir.traversal.targets @@ -3,21 +3,28 @@ - - - true + + true + + + true + + + false - + <_projectsToBuild Include="@(Project)" Condition="'%(Project.PackageTargetRuntime)' == '$(PackageRID)'" /> - - <_projectsToBuild Include="@(Project)" Condition="'%(Project.PackageTargetRuntime)' == '$(PackageRID)' OR '%(Project.PackageTargetRuntime)' == ''" /> + + <_projectsToBuild Include="@(Project)" Condition="'%(Project.PackageTargetRuntime)' == ''" /> -- 2.7.4