|
1 | | -<Project> |
| 1 | +<Project TreatAsLocalProperty="TargetRids"> |
2 | 2 | <PropertyGroup> |
3 | 3 | <_AspireOnlyBuild Condition="'$(DotNetBuildFromSource)' != 'true' and '$(DotNetBuild)' != 'true'">true</_AspireOnlyBuild> |
4 | 4 |
|
5 | 5 | <BuildNative>true</BuildNative> |
6 | 6 |
|
7 | 7 | <BuildRid>$([System.Runtime.InteropServices.RuntimeInformation]::RuntimeIdentifier)</BuildRid> |
8 | | - <TargetRid Condition="'$(TargetRid)' == ''">$(BuildRid)</TargetRid> |
| 8 | + |
| 9 | + <!-- this property is meant only for CI use. Use a colon separate list of RIDs here, like osx-x64:osx-arm64 . |
| 10 | + It is helpful to allow building the non-aot cli builds on a single CI job --> |
| 11 | + <TargetRids Condition="'$(TargetRids)' == ''">$(BuildRid)</TargetRids> |
9 | 12 | </PropertyGroup> |
10 | 13 |
|
11 | 14 | <ItemGroup Condition="'$(_AspireOnlyBuild)' == 'true' and '$(BuildNativeOnly)' != 'true'"> |
12 | 15 | <ProjectToBuild Include="$(RepoRoot)src\**\*.csproj" Exclude="$(RepoRoot)src\Aspire.ProjectTemplates\templates\**\*.csproj" /> |
13 | 16 | <ProjectToBuild Include="$(RepoRoot)eng\dcppack\**\*.csproj" /> |
14 | 17 | <ProjectToBuild Include="$(RepoRoot)eng\dashboardpack\**\*.csproj" /> |
15 | 18 |
|
16 | | - <ProjectToBuild Condition="'$(BuildNative)' == 'true'" Include="$(RepoRoot)eng\clipack\Aspire.Cli.$(TargetRid).csproj" /> |
| 19 | + <_TargetRidItem Include="$(TargetRids.Split(':'))" /> |
| 20 | + <ProjectToBuild Condition="'$(BuildNative)' == 'true'" Include="@(_TargetRidItem -> '$(RepoRoot)eng\clipack\Aspire.Cli.%(Identity).csproj')" /> |
17 | 21 |
|
18 | 22 | <ProjectToBuild Include="$(RepoRoot)playground\**\*.csproj" /> |
19 | 23 |
|
|
27 | 31 | <ItemGroup Condition="'$(_AspireOnlyBuild)' == 'true' and '$(BuildNativeOnly)' == 'true'"> |
28 | 32 | <ProjectToBuild Include="$(RepoRoot)src\Aspire.Cli\Aspire.Cli.csproj" /> |
29 | 33 |
|
30 | | - <ProjectToBuild Include="$(RepoRoot)eng\clipack\Aspire.Cli.$(TargetRid).csproj" /> |
| 34 | + <_TargetRidItem Include="$(TargetRids.Split(':'))" /> |
| 35 | + <ProjectToBuild Include="@(_TargetRidItem -> '$(RepoRoot)eng\clipack\Aspire.Cli.%(Identity).csproj')" /> |
31 | 36 | </ItemGroup> |
32 | 37 |
|
33 | 38 | <!-- When building from source, we want to use the live repo contents as opposed to cloning the repo. --> |
|
0 commit comments