Skip to content

Commit bde3078

Browse files
[main] Update dependencies from dotnet/arcade (#6802)
[main] Update dependencies from dotnet/arcade - Merge branch 'main' into darc-main-be87ffda-cd9f-4066-ae4a-f3f3c1eeada8
1 parent 712e75b commit bde3078

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+561
-1845
lines changed

eng/Version.Details.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -206,17 +206,17 @@
206206
</Dependency>
207207
</ProductDependencies>
208208
<ToolsetDependencies>
209-
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="10.0.0-beta.25476.2">
209+
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="9.0.0-beta.25515.2">
210210
<Uri>https://github.com/dotnet/arcade</Uri>
211-
<Sha>a4c9a07d978c070ef5c19d2ec9f811d6a5b20914</Sha>
211+
<Sha>6666973b629b24e259162dba03486c23af464bab</Sha>
212212
</Dependency>
213-
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="10.0.0-beta.25476.2">
213+
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="9.0.0-beta.25515.2">
214214
<Uri>https://github.com/dotnet/arcade</Uri>
215-
<Sha>a4c9a07d978c070ef5c19d2ec9f811d6a5b20914</Sha>
215+
<Sha>6666973b629b24e259162dba03486c23af464bab</Sha>
216216
</Dependency>
217-
<Dependency Name="Microsoft.DotNet.Build.Tasks.Templating" Version="10.0.0-beta.25476.2">
217+
<Dependency Name="Microsoft.DotNet.Build.Tasks.Templating" Version="9.0.0-beta.25515.2">
218218
<Uri>https://github.com/dotnet/arcade</Uri>
219-
<Sha>a4c9a07d978c070ef5c19d2ec9f811d6a5b20914</Sha>
219+
<Sha>6666973b629b24e259162dba03486c23af464bab</Sha>
220220
</Dependency>
221221
</ToolsetDependencies>
222222
</Dependencies>

eng/Versions.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
<!-- Dependencies from https://github.com/dotnet/efcore -->
8787
<MicrosoftEntityFrameworkCoreSqliteVersion>9.0.10</MicrosoftEntityFrameworkCoreSqliteVersion>
8888
<!-- Dependencies from https://github.com/dotnet/arcade -->
89-
<MicrosoftDotNetBuildTasksTemplatingVersion>10.0.0-beta.25476.2</MicrosoftDotNetBuildTasksTemplatingVersion>
89+
<MicrosoftDotNetBuildTasksTemplatingVersion>9.0.0-beta.25515.2</MicrosoftDotNetBuildTasksTemplatingVersion>
9090
</PropertyGroup>
9191
<PropertyGroup Label="No longer automated Maestro dependency updates">
9292
<!-- Packages from dotnet/runtime -->

eng/common/CIBuild.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
@echo off
2-
powershell -ExecutionPolicy ByPass -NoProfile -command "& """%~dp0Build.ps1""" -restore -build -test -sign -pack -publish -ci %*"
2+
powershell -ExecutionPolicy ByPass -NoProfile -command "& """%~dp0Build.ps1""" -restore -build -test -sign -pack -publish -ci %*"

eng/common/SetupNugetSources.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ if ($dotnet31Source -ne $null) {
157157
AddPackageSource -Sources $sources -SourceName "dotnet3.1-internal-transport" -SourceEndPoint "https://pkgs.dev.azure.com/dnceng/_packaging/dotnet3.1-internal-transport/nuget/v2" -Creds $creds -Username $userName -pwd $Password
158158
}
159159

160-
$dotnetVersions = @('5','6','7','8','9','10')
160+
$dotnetVersions = @('5','6','7','8','9')
161161

162162
foreach ($dotnetVersion in $dotnetVersions) {
163163
$feedPrefix = "dotnet" + $dotnetVersion;

eng/common/SetupNugetSources.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ if [ "$?" == "0" ]; then
9999
PackageSources+=('dotnet3.1-internal-transport')
100100
fi
101101

102-
DotNetVersions=('5' '6' '7' '8' '9' '10')
102+
DotNetVersions=('5' '6' '7' '8' '9')
103103

104104
for DotNetVersion in ${DotNetVersions[@]} ; do
105105
FeedPrefix="dotnet${DotNetVersion}";

eng/common/build.ps1

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ Param(
77
[string] $msbuildEngine = $null,
88
[bool] $warnAsError = $true,
99
[bool] $nodeReuse = $true,
10-
[switch] $buildCheck = $false,
1110
[switch][Alias('r')]$restore,
1211
[switch] $deployDeps,
1312
[switch][Alias('b')]$build,
@@ -21,7 +20,6 @@ Param(
2120
[switch] $publish,
2221
[switch] $clean,
2322
[switch][Alias('pb')]$productBuild,
24-
[switch]$fromVMR,
2523
[switch][Alias('bl')]$binaryLog,
2624
[switch][Alias('nobl')]$excludeCIBinarylog,
2725
[switch] $ci,
@@ -73,9 +71,6 @@ function Print-Usage() {
7371
Write-Host " -msbuildEngine <value> Msbuild engine to use to run build ('dotnet', 'vs', or unspecified)."
7472
Write-Host " -excludePrereleaseVS Set to exclude build engines in prerelease versions of Visual Studio"
7573
Write-Host " -nativeToolsOnMachine Sets the native tools on machine environment variable (indicating that the script should use native tools on machine)"
76-
Write-Host " -nodeReuse <value> Sets nodereuse msbuild parameter ('true' or 'false')"
77-
Write-Host " -buildCheck Sets /check msbuild parameter"
78-
Write-Host " -fromVMR Set when building from within the VMR"
7974
Write-Host ""
8075

8176
Write-Host "Command line arguments not listed above are passed thru to msbuild."
@@ -102,7 +97,6 @@ function Build {
10297

10398
$bl = if ($binaryLog) { '/bl:' + (Join-Path $LogDir 'Build.binlog') } else { '' }
10499
$platformArg = if ($platform) { "/p:Platform=$platform" } else { '' }
105-
$check = if ($buildCheck) { '/check' } else { '' }
106100

107101
if ($projects) {
108102
# Re-assign properties to a new variable because PowerShell doesn't let us append properties directly for unclear reasons.
@@ -119,7 +113,6 @@ function Build {
119113
MSBuild $toolsetBuildProj `
120114
$bl `
121115
$platformArg `
122-
$check `
123116
/p:Configuration=$configuration `
124117
/p:RepoRoot=$RepoRoot `
125118
/p:Restore=$restore `
@@ -129,13 +122,11 @@ function Build {
129122
/p:Deploy=$deploy `
130123
/p:Test=$test `
131124
/p:Pack=$pack `
132-
/p:DotNetBuild=$productBuild `
133-
/p:DotNetBuildFromVMR=$fromVMR `
125+
/p:DotNetBuildRepo=$productBuild `
134126
/p:IntegrationTest=$integrationTest `
135127
/p:PerformanceTest=$performanceTest `
136128
/p:Sign=$sign `
137129
/p:Publish=$publish `
138-
/p:RestoreStaticGraphEnableBinaryLogger=$binaryLog `
139130
@properties
140131
}
141132

eng/common/build.sh

Lines changed: 8 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ usage()
4242
echo " --prepareMachine Prepare machine for CI run, clean up processes after build"
4343
echo " --nodeReuse <value> Sets nodereuse msbuild parameter ('true' or 'false')"
4444
echo " --warnAsError <value> Sets warnaserror msbuild parameter ('true' or 'false')"
45-
echo " --buildCheck <value> Sets /check msbuild parameter"
46-
echo " --fromVMR Set when building from within the VMR"
4745
echo ""
4846
echo "Command line arguments not listed above are passed thru to msbuild."
4947
echo "Arguments can also be passed in with a single hyphen."
@@ -65,7 +63,6 @@ restore=false
6563
build=false
6664
source_build=false
6765
product_build=false
68-
from_vmr=false
6966
rebuild=false
7067
test=false
7168
integration_test=false
@@ -79,7 +76,6 @@ clean=false
7976

8077
warn_as_error=true
8178
node_reuse=true
82-
build_check=false
8379
binary_log=false
8480
exclude_ci_binary_log=false
8581
pipelines_log=false
@@ -91,7 +87,7 @@ verbosity='minimal'
9187
runtime_source_feed=''
9288
runtime_source_feed_key=''
9389

94-
properties=()
90+
properties=''
9591
while [[ $# > 0 ]]; do
9692
opt="$(echo "${1/#--/-}" | tr "[:upper:]" "[:lower:]")"
9793
case "$opt" in
@@ -131,22 +127,19 @@ while [[ $# > 0 ]]; do
131127
-pack)
132128
pack=true
133129
;;
134-
-sourcebuild|-source-build|-sb)
130+
-sourcebuild|-sb)
135131
build=true
136132
source_build=true
137133
product_build=true
138134
restore=true
139135
pack=true
140136
;;
141-
-productbuild|-product-build|-pb)
137+
-productBuild|-pb)
142138
build=true
143139
product_build=true
144140
restore=true
145141
pack=true
146142
;;
147-
-fromvmr|-from-vmr)
148-
from_vmr=true
149-
;;
150143
-test|-t)
151144
test=true
152145
;;
@@ -180,9 +173,6 @@ while [[ $# > 0 ]]; do
180173
node_reuse=$2
181174
shift
182175
;;
183-
-buildcheck)
184-
build_check=true
185-
;;
186176
-runtimesourcefeed)
187177
runtime_source_feed=$2
188178
shift
@@ -192,7 +182,7 @@ while [[ $# > 0 ]]; do
192182
shift
193183
;;
194184
*)
195-
properties+=("$1")
185+
properties="$properties $1"
196186
;;
197187
esac
198188

@@ -226,38 +216,31 @@ function Build {
226216
InitializeCustomToolset
227217

228218
if [[ ! -z "$projects" ]]; then
229-
properties+=("/p:Projects=$projects")
219+
properties="$properties /p:Projects=$projects"
230220
fi
231221

232222
local bl=""
233223
if [[ "$binary_log" == true ]]; then
234224
bl="/bl:\"$log_dir/Build.binlog\""
235225
fi
236226

237-
local check=""
238-
if [[ "$build_check" == true ]]; then
239-
check="/check"
240-
fi
241-
242227
MSBuild $_InitializeToolset \
243228
$bl \
244-
$check \
245229
/p:Configuration=$configuration \
246230
/p:RepoRoot="$repo_root" \
247231
/p:Restore=$restore \
248232
/p:Build=$build \
249-
/p:DotNetBuild=$product_build \
233+
/p:DotNetBuildRepo=$product_build \
234+
/p:ArcadeBuildFromSource=$source_build \
250235
/p:DotNetBuildSourceOnly=$source_build \
251-
/p:DotNetBuildFromVMR=$from_vmr \
252236
/p:Rebuild=$rebuild \
253237
/p:Test=$test \
254238
/p:Pack=$pack \
255239
/p:IntegrationTest=$integration_test \
256240
/p:PerformanceTest=$performance_test \
257241
/p:Sign=$sign \
258242
/p:Publish=$publish \
259-
/p:RestoreStaticGraphEnableBinaryLogger=$binary_log \
260-
${properties[@]+"${properties[@]}"}
243+
$properties
261244

262245
ExitWithExitCode 0
263246
}

eng/common/cibuild.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ while [[ -h $source ]]; do
1313
done
1414
scriptroot="$( cd -P "$( dirname "$source" )" && pwd )"
1515

16-
. "$scriptroot/build.sh" --restore --build --test --pack --publish --ci $@
16+
. "$scriptroot/build.sh" --restore --build --test --pack --publish --ci $@

eng/common/core-templates/job/job.yml

Lines changed: 37 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ parameters:
1919
# publishing defaults
2020
artifacts: ''
2121
enableMicrobuild: false
22-
enableMicrobuildForMacAndLinux: false
2322
microbuildUseESRP: true
2423
enablePublishBuildArtifacts: false
2524
enablePublishBuildAssets: false
2625
enablePublishTestResults: false
26+
enablePublishUsingPipelines: false
2727
enableBuildRetry: false
2828
mergeTestResults: false
2929
testRunTitle: ''
@@ -74,6 +74,9 @@ jobs:
7474
- ${{ if ne(parameters.enableTelemetry, 'false') }}:
7575
- name: DOTNET_CLI_TELEMETRY_PROFILE
7676
value: '$(Build.Repository.Uri)'
77+
- ${{ if eq(parameters.enableRichCodeNavigation, 'true') }}:
78+
- name: EnableRichCodeNavigation
79+
value: 'true'
7780
# Retry signature validation up to three times, waiting 2 seconds between attempts.
7881
# See https://learn.microsoft.com/en-us/nuget/reference/errors-and-warnings/nu3028#retry-untrusted-root-failures
7982
- name: NUGET_EXPERIMENTAL_CHAIN_BUILD_RETRY_POLICY
@@ -125,12 +128,23 @@ jobs:
125128
- ${{ preStep }}
126129

127130
- ${{ if and(eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
128-
- template: /eng/common/core-templates/steps/install-microbuild.yml
129-
parameters:
130-
enableMicrobuild: ${{ parameters.enableMicrobuild }}
131-
enableMicrobuildForMacAndLinux: ${{ parameters.enableMicrobuildForMacAndLinux }}
132-
microbuildUseESRP: ${{ parameters.microbuildUseESRP }}
131+
- ${{ if eq(parameters.enableMicrobuild, 'true') }}:
132+
- task: MicroBuildSigningPlugin@4
133+
displayName: Install MicroBuild plugin
134+
inputs:
135+
signType: $(_SignType)
136+
zipSources: false
137+
feedSource: https://dnceng.pkgs.visualstudio.com/_packaging/MicroBuildToolset/nuget/v3/index.json
138+
${{ if eq(parameters.microbuildUseESRP, true) }}:
139+
${{ if eq(variables['System.TeamProject'], 'DevDiv') }}:
140+
ConnectedPMEServiceName: 6cc74545-d7b9-4050-9dfa-ebefcc8961ea
141+
${{ else }}:
142+
ConnectedPMEServiceName: 248d384a-b39b-46e3-8ad5-c2c210d5e7ca
143+
env:
144+
TeamName: $(_TeamName)
145+
MicroBuildOutputFolderOverride: '$(Agent.TempDirectory)'
133146
continueOnError: ${{ parameters.continueOnError }}
147+
condition: and(succeeded(), in(variables['_SignType'], 'real', 'test'), eq(variables['Agent.Os'], 'Windows_NT'))
134148

135149
- ${{ if and(eq(parameters.runAsPublic, 'false'), eq(variables['System.TeamProject'], 'internal')) }}:
136150
- task: NuGetAuthenticate@1
@@ -146,15 +160,27 @@ jobs:
146160
- ${{ each step in parameters.steps }}:
147161
- ${{ step }}
148162

163+
- ${{ if eq(parameters.enableRichCodeNavigation, true) }}:
164+
- task: RichCodeNavIndexer@0
165+
displayName: RichCodeNav Upload
166+
inputs:
167+
languages: ${{ coalesce(parameters.richCodeNavigationLanguage, 'csharp') }}
168+
environment: ${{ coalesce(parameters.richCodeNavigationEnvironment, 'internal') }}
169+
richNavLogOutputDirectory: $(System.DefaultWorkingDirectory)/artifacts/bin
170+
uploadRichNavArtifacts: ${{ coalesce(parameters.richCodeNavigationUploadArtifacts, false) }}
171+
continueOnError: true
172+
149173
- ${{ each step in parameters.componentGovernanceSteps }}:
150174
- ${{ step }}
151175

152-
- ${{ if and(eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
153-
- template: /eng/common/core-templates/steps/cleanup-microbuild.yml
154-
parameters:
155-
enableMicrobuild: ${{ parameters.enableMicrobuild }}
156-
enableMicrobuildForMacAndLinux: ${{ parameters.enableMicrobuildForMacAndLinux }}
176+
- ${{ if eq(parameters.enableMicrobuild, 'true') }}:
177+
- ${{ if and(eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
178+
- task: MicroBuildCleanup@1
179+
displayName: Execute Microbuild cleanup tasks
180+
condition: and(always(), in(variables['_SignType'], 'real', 'test'), eq(variables['Agent.Os'], 'Windows_NT'))
157181
continueOnError: ${{ parameters.continueOnError }}
182+
env:
183+
TeamName: $(_TeamName)
158184

159185
# Publish test results
160186
- ${{ if or(and(eq(parameters.enablePublishTestResults, 'true'), eq(parameters.testResultsFormat, '')), eq(parameters.testResultsFormat, 'xunit')) }}:

eng/common/core-templates/job/onelocbuild.yml

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ parameters:
44

55
# Optional: A defined YAML pool - https://docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema?view=vsts&tabs=schema#pool
66
pool: ''
7-
7+
88
CeapexPat: $(dn-bot-ceapex-package-r) # PAT for the loc AzDO instance https://dev.azure.com/ceapex
99
GithubPat: $(BotAccount-dotnet-bot-repo-PAT)
1010

@@ -27,7 +27,7 @@ parameters:
2727
is1ESPipeline: ''
2828
jobs:
2929
- job: OneLocBuild${{ parameters.JobNameSuffix }}
30-
30+
3131
dependsOn: ${{ parameters.dependsOn }}
3232

3333
displayName: OneLocBuild${{ parameters.JobNameSuffix }}
@@ -86,7 +86,8 @@ jobs:
8686
isAutoCompletePrSelected: ${{ parameters.AutoCompletePr }}
8787
${{ if eq(parameters.CreatePr, true) }}:
8888
isUseLfLineEndingsSelected: ${{ parameters.UseLfLineEndings }}
89-
isShouldReusePrSelected: ${{ parameters.ReusePr }}
89+
${{ if eq(parameters.RepoType, 'gitHub') }}:
90+
isShouldReusePrSelected: ${{ parameters.ReusePr }}
9091
packageSourceAuth: patAuth
9192
patVariable: ${{ parameters.CeapexPat }}
9293
${{ if eq(parameters.RepoType, 'gitHub') }}:
@@ -99,20 +100,22 @@ jobs:
99100
mirrorBranch: ${{ parameters.MirrorBranch }}
100101
condition: ${{ parameters.condition }}
101102

102-
# Copy the locProject.json to the root of the Loc directory, then publish a pipeline artifact
103-
- task: CopyFiles@2
104-
displayName: Copy LocProject.json
105-
inputs:
106-
SourceFolder: '$(System.DefaultWorkingDirectory)/eng/Localize/'
107-
Contents: 'LocProject.json'
108-
TargetFolder: '$(Build.ArtifactStagingDirectory)/loc'
109-
condition: ${{ parameters.condition }}
110-
111-
- template: /eng/common/core-templates/steps/publish-pipeline-artifacts.yml
103+
- template: /eng/common/core-templates/steps/publish-build-artifacts.yml
112104
parameters:
113105
is1ESPipeline: ${{ parameters.is1ESPipeline }}
114106
args:
115-
targetPath: '$(Build.ArtifactStagingDirectory)/loc'
116-
artifactName: 'Loc'
117-
displayName: 'Publish Localization Files'
107+
displayName: Publish Localization Files
108+
pathToPublish: '$(Build.ArtifactStagingDirectory)/loc'
109+
publishLocation: Container
110+
artifactName: Loc
118111
condition: ${{ parameters.condition }}
112+
113+
- template: /eng/common/core-templates/steps/publish-build-artifacts.yml
114+
parameters:
115+
is1ESPipeline: ${{ parameters.is1ESPipeline }}
116+
args:
117+
displayName: Publish LocProject.json
118+
pathToPublish: '$(System.DefaultWorkingDirectory)/eng/Localize/'
119+
publishLocation: Container
120+
artifactName: Loc
121+
condition: ${{ parameters.condition }}

0 commit comments

Comments
 (0)