<Import Project="$(MSBuildThisFileDirectory)..\..\dir.traversal.targets" />
+ <PropertyGroup Condition="'$(OfficialBuildId)' != ''">
+ <!-- During an official build, only build identity packages in the AllConfigurations build -->
+ <BuildIdentityPackage Condition="'$(BuildIdentityPackage)' == '' AND '$(OS)' == 'Windows_NT' AND '$(BuildArch)' == 'x64'">true</BuildIdentityPackage>
+ </PropertyGroup>
+
<Target Name="FilterProjects" BeforeTargets="Build">
<Error Condition="'$(PackageRID)' == ''" Text="'PackageRID' property must be specified."/>
<!-- Only build packages for current RID or non-RID-specific -->
- <ItemGroup>
+ <ItemGroup Condition="$(BuildIdentityPackage)!='true'">
+ <_projectsToBuild Include="@(Project)" Condition="'%(Project.PackageTargetRuntime)' == '$(PackageRID)'" />
+ </ItemGroup>
+
+ <ItemGroup Condition="$(BuildIdentityPackage)=='true'" >
<_projectsToBuild Include="@(Project)" Condition="'%(Project.PackageTargetRuntime)' == '$(PackageRID)' OR '%(Project.PackageTargetRuntime)' == ''" />
</ItemGroup>