+++ /dev/null
-<Project>
- <Import Project="runtime.native.System.IO.Ports.props" />
-
- <PropertyGroup>
- <!-- TODO: Remove when the package shipped. -->
- <DisablePackageBaselineValidation>true</DisablePackageBaselineValidation>
- </PropertyGroup>
-</Project>
\ No newline at end of file
</ItemGroup>
<ItemGroup>
- <!-- Build the identity package in the allconfigurations build. -->
- <ProjectReference Include="$(MSBuildThisFileDirectory)*\pkg\runtime.native.*.proj" Condition="'$(BuildAllConfigurations)' == 'true'" />
- <!-- Build the runtime specific package matching the current RID, outside of an allconfigurations build. -->
- <ProjectReference Include="$(MSBuildThisFileDirectory)*\pkg\runtime.$(OutputRid).*.proj" Condition="'$(BuildAllConfigurations)' != 'true'" />
+ <!-- During an official build, build the identity package only in the allconfigurations build, otherwise always. -->
+ <ProjectReference Include="$(MSBuildThisFileDirectory)*\pkg\runtime.native.*.proj" Condition="'$(BuildingAnOfficialBuildLeg)' != 'true' or '$(BuildAllConfigurations)' == 'true'" />
+ <!-- During an official Build, build the rid specific package matching the OutputRid only outside of an allconfigurations build and only when targeting the CoreCLR runtime.
+ The limitation on the CoreCLR runtime is entirely artificial but avoids duplicate assets being publish. -->
+ <ProjectReference Include="$(MSBuildThisFileDirectory)*\pkg\runtime.$(OutputRid).*.proj" Condition="'$(BuildingAnOfficialBuildLeg)' != 'true' or
+ ('$(BuildAllConfigurations)' != 'true' and '$(RuntimeFlavor)' == '$(PrimaryRuntimeFlavor)')" />
</ItemGroup>
<!-- Need the PackageIndexFile file property from baseline.props -->