Skip to content

Commit

Permalink
Build the RID-specific System.IO.Ports packages in the VMR (#112054)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkoritzinsky authored Feb 2, 2025
1 parent 4bd597f commit 6f3f675
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions src/libraries/oob-src.proj
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,18 @@
<TargetFramework>$(NetCoreAppCurrent)-$(TargetOS)</TargetFramework>
<!-- Filter ProjectReferences to build the best matching target framework only. -->
<FilterTraversalProjectReferences>true</FilterTraversalProjectReferences>
<!-- In non-official builds, build RID-specific projects -->
<BuildRidSpecificProjects Condition="'$(BuildingAnOfficialBuildLeg)' != 'true'">true</BuildRidSpecificProjects>
<!-- In the VMR, we're always in a RID-specific leg. -->
<BuildRidSpecificProjects Condition="'$(BuildRidSpecificProjects)' == '' and
'$(DotNetBuildOrchestrator)' == 'true'">true</BuildRidSpecificProjects>
<!--
Outside the VMR, only RID-specific packages in official build legs when we're not building AllConfigurations,
but we're building everything for this RID target (ie don't build on specialized legs like Mono LLVMAOT).
-->
<BuildRidSpecificProjects Condition="'$(BuildRidSpecificProjects)' == '' and
'$(BuildAllConfigurations)' != 'true' and
'$(DotNetBuildAllRuntimePacks)' == 'true'">true</BuildRidSpecificProjects>
</PropertyGroup>

<!-- Reference all NetCoreAppCurrent out-of-band src projects. -->
Expand All @@ -19,13 +31,7 @@
The limitation on DotNetBuildAllRuntimePacks avoids duplicate assets being publish. -->
<ProjectReference Include="$(MSBuildThisFileDirectory)*\pkg\runtime.$(OutputRID).*.proj"
Condition="'$(SkipLibrariesNativeRuntimePackages)' != 'true' and
(
'$(BuildingAnOfficialBuildLeg)' != 'true' or
(
'$(BuildAllConfigurations)' != 'true' and
'$(DotNetBuildAllRuntimePacks)' == 'true'
)
)" />
'$(BuildRidSpecificProjects)' == 'true'" />

<!-- Don't build task and tools project in the NetCoreAppCurrent vertical. -->
<ProjectReference Remove="Microsoft.XmlSerializer.Generator\src\Microsoft.XmlSerializer.Generator.csproj" />
Expand Down

0 comments on commit 6f3f675

Please sign in to comment.