|
1 | 1 | <Project TreatAsLocalProperty="TargetRids"> |
| 2 | + <!-- |
| 3 | + Properties: |
| 4 | + SkipManagedBuild - if 'true', skips building all managed projects, defaults to 'false' |
| 5 | + SkipNativeBuild - if 'true', skips building all native projects, defaults to 'false' |
| 6 | + BuildExtension - if 'true', builds the extension project, defaults to 'false' |
| 7 | + BuildTestsOnly - if 'true', builds only test projects, defaults to 'false' |
| 8 | + SkipTestProjects - if 'true', skips building test projects, defaults to 'false' |
| 9 | + TargetRids - colon separated list of RIDs to build native projects for |
| 10 | + --> |
| 11 | + |
2 | 12 | <PropertyGroup> |
3 | 13 | <BuildRid>$([System.Runtime.InteropServices.RuntimeInformation]::RuntimeIdentifier)</BuildRid> |
4 | 14 |
|
|
7 | 17 | <TargetRids Condition="'$(TargetRids)' == ''">$(BuildRid)</TargetRids> |
8 | 18 | </PropertyGroup> |
9 | 19 |
|
10 | | - <ItemGroup Condition="'$(SkipManagedBuild)' != 'true'"> |
| 20 | + <!-- `$(BuildTestsOnly)` allows building only test projects, skipping src, playground, |
| 21 | + and pack projects. This is useful for reducing disk space usage when only test |
| 22 | + projects need to be built, such as during test runsheet generation. --> |
| 23 | + <ItemGroup Condition="'$(SkipManagedBuild)' != 'true' and '$(BuildTestsOnly)' != 'true'"> |
11 | 24 | <!-- Project name validation runs once in the outer build --> |
12 | 25 | <ProjectToBuild Include="$(RepoRoot)eng\OuterPreBuild.proj" /> |
13 | 26 |
|
|
16 | 29 | <ProjectToBuild Include="$(RepoRoot)eng\dashboardpack\**\*.csproj" /> |
17 | 30 |
|
18 | 31 | <ProjectToBuild Include="$(RepoRoot)playground\**\*.csproj" /> |
| 32 | + </ItemGroup> |
19 | 33 |
|
20 | | - <!-- `$(SkipTestProjects)` allows skipping test projects from being |
21 | | - included in the build at all. This is useful for cases like when we are |
22 | | - just building the packages, and don't need to build the test projects. --> |
23 | | - <ProjectToBuild Include="$(RepoRoot)tests\**\*.csproj" Condition="'$(SkipTestProjects)' != 'true'" /> |
| 34 | + <!-- `$(SkipTestProjects)` allows skipping test projects from being |
| 35 | + included in the build at all. This is useful for cases like when we are |
| 36 | + just building the packages, and don't need to build the test projects. --> |
| 37 | + <ItemGroup Condition="'$(SkipManagedBuild)' != 'true' and '$(SkipTestProjects)' != 'true'"> |
| 38 | + <ProjectToBuild Include="$(RepoRoot)tests\**\*.csproj" /> |
24 | 39 | </ItemGroup> |
25 | 40 |
|
26 | 41 | <!-- Extension build project --> |
|
0 commit comments