Merge branch 'release/8.0.2xx'

This commit is contained in:
Jason Zhai 2023-11-15 00:54:28 -08:00
commit e641a47a9f
5 changed files with 12 additions and 4 deletions

View file

@ -4,6 +4,7 @@
</PropertyGroup>
<Target Name="PopulateGenerateChecksumItems"
Condition="'$(PackInstaller)' == 'true'"
AfterTargets="Build"
BeforeTargets="GenerateChecksums" >

View file

@ -8,6 +8,7 @@ param(
[string]$Configuration="Debug",
[string]$Architecture="x64",
[switch]$Sign=$false,
[switch]$Pack=$false,
[switch]$PgoInstrument,
[bool]$WarnAsError=$true,
[Parameter(ValueFromRemainingArguments=$true)][String[]]$ExtraParameters
@ -23,10 +24,11 @@ if ($PgoInstrument) {
}
if ($Sign) {
$Parameters = "$Parameters -sign /p:SignCoreSdk=true"
$Parameters = "$Parameters -sign"
}
# Workaround https://github.com/dotnet/arcade/issues/1776
$WarnAsError = $false
if ($Pack) {
$Parameters = "$Parameters /p:PackInstaller=true"
}
$Parameters = "$Parameters -WarnAsError `$$WarnAsError"

View file

@ -45,6 +45,9 @@ while [[ $# > 0 ]]; do
--pgoInstrument)
args+=("/p:PgoInstrument=true")
;;
--pack)
args+=("/p:PackInstaller=true")
;;
--help)
echo "Usage: $0 [--configuration <CONFIGURATION>] [--architecture <ARCHITECTURE>] [--docker <IMAGENAME>] [--help]"
echo ""

View file

@ -2,7 +2,7 @@
<!-- Crossgen is currently not supported on the s390x, ppc64le architecture as using mono instead of CoreCLR.
Neither crossgen2 nor mono is supported on the loongarch64 architecture at present. -->
<Target Name="CrossgenLayout"
Condition="'$(DISABLE_CROSSGEN)' == '' AND '$(Architecture)' != 's390x' AND '$(Architecture)' != 'ppc64le' AND '$(Architecture)' != 'loongarch64'"
Condition="'$(DISABLE_CROSSGEN)' == '' AND '$(Architecture)' != 's390x' AND '$(Architecture)' != 'ppc64le' AND '$(Architecture)' != 'loongarch64' AND '$(PackInstaller)' == 'true'"
DependsOnTargets="SetSdkBrandingInfo">
<PropertyGroup>

View file

@ -1,5 +1,7 @@
<Project>
<!-- Disable the GenerateArchives step in the local dev build, only do when -pack is specified to speed up dev builds -->
<Target Name="GenerateArchives"
Condition="'$(PackInstaller)' == 'true'"
DependsOnTargets="GenerateLayout;GetCurrentRuntimeInformation"
BeforeTargets="AfterBuild">