|
|
@@ -8,24 +8,16 @@
|
|
|
<SourceBuildTargetFrameworkFilter>netstandard2.0%3bnetstandard2.1%3bnetcoreapp2.1%3bnetcoreapp3.1%3bnet5.0%3bnet6.0%3bnet7.0%3bnet8.0%3bnet9.0</SourceBuildTargetFrameworkFilter>
|
|
|
</PropertyGroup>
|
|
|
|
|
|
- <!-- Only run this target in source-build only mode. -->
|
|
|
- <Target Name="PrepareGlobalJsonForSourceBuild"
|
|
|
- AfterTargets="PrepareInnerSourceBuildRepoRoot"
|
|
|
- BeforeTargets="RunInnerSourceBuildCommand"
|
|
|
- Condition="'$(ArcadeBuildFromSource)' == 'true'">
|
|
|
- <Exec
|
|
|
- Command="./eng/scripts/prepare-sourcebuild-globaljson.sh"
|
|
|
- WorkingDirectory="$(InnerSourceBuildRepoRoot)" />
|
|
|
- </Target>
|
|
|
-
|
|
|
<!--
|
|
|
Remove inner source .globalconfig file as both the inner and outer config files get loaded and cause a conflict.
|
|
|
Leaving the inner will cause all conflicting settings to be ignored.
|
|
|
- https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/configuration-files#general-options
|
|
|
+ https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/configuration-files#general-options.
|
|
|
+ This only needs to be done if there is an inner clone.
|
|
|
-->
|
|
|
<Target Name="RemoveInnerGlobalConfig"
|
|
|
DependsOnTargets="PrepareInnerSourceBuildRepoRoot"
|
|
|
- BeforeTargets="RunInnerSourceBuildCommand">
|
|
|
+ BeforeTargets="RunInnerSourceBuildCommand"
|
|
|
+ Condition="'$(DotNetBuildOrchestrator)' != 'true'">
|
|
|
|
|
|
<Delete Files="$(InnerSourceBuildRepoRoot).globalconfig" />
|
|
|
</Target>
|
|
|
@@ -33,7 +25,7 @@
|
|
|
<!-- Build RepoTasks - this is normally triggered via the build script but the inner ArPow source-build is run via msbuild.
|
|
|
https://github.com/dotnet/source-build/issues/3807 -->
|
|
|
<Target Name="BuildRepoTasks"
|
|
|
- Condition="'$(ArcadeInnerBuildFromSource)' == 'true'"
|
|
|
+ Condition="'$(DotNetBuildInnerRepo)' == 'true' and '$(DotNetBuildSourceOnly)' == 'true'"
|
|
|
BeforeTargets="Execute">
|
|
|
<!-- If the alternative runtime location and key are present, pass those through -->
|
|
|
<PropertyGroup>
|
|
|
@@ -46,8 +38,6 @@
|
|
|
<ItemGroup>
|
|
|
<!-- We need to flow FullAssemblySigningSupported even when building repo tasks because they use full signing -->
|
|
|
<InnerBuildEnv Condition="'$(FullAssemblySigningSupported)' != ''" Include="FullAssemblySigningSupported=$(FullAssemblySigningSupported)" />
|
|
|
- <InnerBuildEnv Include="DotNetBuildFromSource=$(ArcadeBuildFromSource)" />
|
|
|
- <InnerBuildEnv Include="DotNetBuildVertical=$(ArcadeBuildVertical)" />
|
|
|
<InnerBuildEnv Include="DotNetBuildSourceOnly=$(DotNetBuildSourceOnly)" />
|
|
|
</ItemGroup>
|
|
|
|
|
|
@@ -90,11 +80,15 @@
|
|
|
-->
|
|
|
<IntermediateNupkgArtifactFile Include="$(InstallersArtifactsDir)aspnetcore-runtime-*.tar.gz" />
|
|
|
<IntermediateNupkgArtifactFile Include="$(InstallersArtifactsDir)aspnetcore_base_runtime.version" />
|
|
|
+ <IntermediateNupkgArtifactFile Include="$(InstallersArtifactsDir)aspnetcore-runtime-*.msi" />
|
|
|
+ <IntermediateNupkgArtifactFile Include="$(InstallersArtifactsDir)aspnetcore-runtime-*.pkg" />
|
|
|
+ <IntermediateNupkgArtifactFile Include="$(InstallersArtifactsDir)aspnetcore-runtime-*.deb" />
|
|
|
+ <IntermediateNupkgArtifactFile Include="$(InstallersArtifactsDir)aspnetcore-runtime-*.rpm" />
|
|
|
</ItemGroup>
|
|
|
</Target>
|
|
|
|
|
|
<Target Name="RestoreNpmPackages"
|
|
|
- Condition="'$(BuildNodeJS)' == 'true'"
|
|
|
+ Condition="'$(BuildNodeJS)' == 'true' and '$(DotNetBuildSourceOnly)' == 'true'"
|
|
|
BeforeTargets="RunInnerSourceBuildCommand">
|
|
|
|
|
|
<Message Text="Checking node version..." Importance="high" />
|
|
|
@@ -120,7 +114,7 @@
|
|
|
</Target>
|
|
|
|
|
|
<Target Name="BuildNpmFiles"
|
|
|
- Condition="'$(BuildNodeJS)' == 'true'"
|
|
|
+ Condition="'$(BuildNodeJS)' == 'true' and '$(DotNetBuildSourceOnly)' == 'true'"
|
|
|
DependsOnTargets="RestoreNpmPackages"
|
|
|
BeforeTargets="RunInnerSourceBuildCommand">
|
|
|
|