|
8 | 8 | <SourceBuildTargetFrameworkFilter>netstandard2.0%3bnetstandard2.1%3bnetcoreapp2.1%3bnetcoreapp3.1%3bnet5.0%3bnet6.0%3bnet7.0%3bnet8.0%3bnet9.0</SourceBuildTargetFrameworkFilter>
|
9 | 9 | </PropertyGroup>
|
10 | 10 |
|
11 |
| - <!-- Only run this target in source-build only mode. --> |
12 |
| - <Target Name="PrepareGlobalJsonForSourceBuild" |
13 |
| - AfterTargets="PrepareInnerSourceBuildRepoRoot" |
14 |
| - BeforeTargets="RunInnerSourceBuildCommand" |
15 |
| - Condition="'$(ArcadeBuildFromSource)' == 'true'"> |
16 |
| - <Exec |
17 |
| - Command="./eng/scripts/prepare-sourcebuild-globaljson.sh" |
18 |
| - WorkingDirectory="$(InnerSourceBuildRepoRoot)" /> |
19 |
| - </Target> |
20 |
| - |
21 | 11 | <!--
|
22 | 12 | Remove inner source .globalconfig file as both the inner and outer config files get loaded and cause a conflict.
|
23 | 13 | Leaving the inner will cause all conflicting settings to be ignored.
|
24 |
| - https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/configuration-files#general-options |
| 14 | + https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/configuration-files#general-options. |
| 15 | + This only needs to be done if there is an inner clone. |
25 | 16 | -->
|
26 | 17 | <Target Name="RemoveInnerGlobalConfig"
|
27 | 18 | DependsOnTargets="PrepareInnerSourceBuildRepoRoot"
|
28 |
| - BeforeTargets="RunInnerSourceBuildCommand"> |
| 19 | + BeforeTargets="RunInnerSourceBuildCommand" |
| 20 | + Condition="'$(DotNetBuildOrchestrator)' != 'true'"> |
29 | 21 |
|
30 | 22 | <Delete Files="$(InnerSourceBuildRepoRoot).globalconfig" />
|
31 | 23 | </Target>
|
32 | 24 |
|
33 | 25 | <!-- Build RepoTasks - this is normally triggered via the build script but the inner ArPow source-build is run via msbuild.
|
34 | 26 | https://github.com/dotnet/source-build/issues/3807 -->
|
35 | 27 | <Target Name="BuildRepoTasks"
|
36 |
| - Condition="'$(ArcadeInnerBuildFromSource)' == 'true'" |
| 28 | + Condition="'$(DotNetBuildInnerRepo)' == 'true' and '$(DotNetBuildSourceOnly)' == 'true'" |
37 | 29 | BeforeTargets="Execute">
|
38 | 30 | <!-- If the alternative runtime location and key are present, pass those through -->
|
39 | 31 | <PropertyGroup>
|
|
46 | 38 | <ItemGroup>
|
47 | 39 | <!-- We need to flow FullAssemblySigningSupported even when building repo tasks because they use full signing -->
|
48 | 40 | <InnerBuildEnv Condition="'$(FullAssemblySigningSupported)' != ''" Include="FullAssemblySigningSupported=$(FullAssemblySigningSupported)" />
|
49 |
| - <InnerBuildEnv Include="DotNetBuildFromSource=$(ArcadeBuildFromSource)" /> |
50 |
| - <InnerBuildEnv Include="DotNetBuildVertical=$(ArcadeBuildVertical)" /> |
51 | 41 | <InnerBuildEnv Include="DotNetBuildSourceOnly=$(DotNetBuildSourceOnly)" />
|
52 | 42 | </ItemGroup>
|
53 | 43 |
|
|
90 | 80 | -->
|
91 | 81 | <IntermediateNupkgArtifactFile Include="$(InstallersArtifactsDir)aspnetcore-runtime-*.tar.gz" />
|
92 | 82 | <IntermediateNupkgArtifactFile Include="$(InstallersArtifactsDir)aspnetcore_base_runtime.version" />
|
| 83 | + <IntermediateNupkgArtifactFile Include="$(InstallersArtifactsDir)aspnetcore-runtime-*.msi" /> |
| 84 | + <IntermediateNupkgArtifactFile Include="$(InstallersArtifactsDir)aspnetcore-runtime-*.pkg" /> |
| 85 | + <IntermediateNupkgArtifactFile Include="$(InstallersArtifactsDir)aspnetcore-runtime-*.deb" /> |
| 86 | + <IntermediateNupkgArtifactFile Include="$(InstallersArtifactsDir)aspnetcore-runtime-*.rpm" /> |
93 | 87 | </ItemGroup>
|
94 | 88 | </Target>
|
95 | 89 |
|
96 | 90 | <Target Name="RestoreNpmPackages"
|
97 |
| - Condition="'$(BuildNodeJS)' == 'true'" |
| 91 | + Condition="'$(BuildNodeJS)' == 'true' and '$(DotNetBuildSourceOnly)' == 'true'" |
98 | 92 | BeforeTargets="RunInnerSourceBuildCommand">
|
99 | 93 |
|
100 | 94 | <Message Text="Checking node version..." Importance="high" />
|
|
120 | 114 | </Target>
|
121 | 115 |
|
122 | 116 | <Target Name="BuildNpmFiles"
|
123 |
| - Condition="'$(BuildNodeJS)' == 'true'" |
| 117 | + Condition="'$(BuildNodeJS)' == 'true' and '$(DotNetBuildSourceOnly)' == 'true'" |
124 | 118 | DependsOnTargets="RestoreNpmPackages"
|
125 | 119 | BeforeTargets="RunInnerSourceBuildCommand">
|
126 | 120 |
|
|
0 commit comments