Skip to content

Commit dcc31e1

Browse files
authored
Use MSBuild server in internal builds (#61886)
1 parent fd3fe12 commit dcc31e1

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

.azure/pipelines/ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,8 @@ extends:
173173
$(_BuildArgs)
174174
$(_InternalRuntimeDownloadArgs)
175175
$(Windows64LogArgs)
176+
env:
177+
MSBUILDUSESERVER: "1"
176178
displayName: Build x64
177179

178180
# Build the x86 shared framework
@@ -190,6 +192,8 @@ extends:
190192
$(_BuildArgs)
191193
$(_InternalRuntimeDownloadArgs)
192194
$(Windows86LogArgs)
195+
env:
196+
MSBUILDUSESERVER: "1"
193197
displayName: Build x86
194198

195199
# Build the arm64 shared framework
@@ -207,6 +211,8 @@ extends:
207211
$(_BuildArgs)
208212
$(_InternalRuntimeDownloadArgs)
209213
$(WindowsArm64LogArgs)
214+
env:
215+
MSBUILDUSESERVER: "1"
210216
displayName: Build ARM64
211217

212218
- script: .\src\SiteExtensions\build.cmd
@@ -218,6 +224,8 @@ extends:
218224
-noBuildNative
219225
$(_BuildArgs)
220226
$(_InternalRuntimeDownloadArgs)
227+
env:
228+
MSBUILDUSESERVER: "1"
221229
displayName: Build SiteExtension
222230

223231
# This runs code-signing on all packages, zips, and jar files as defined in build/CodeSign.targets. If
@@ -233,6 +241,8 @@ extends:
233241
/p:DotNetSignType=$(_SignType)
234242
$(_BuildArgs)
235243
$(WindowsSignLogArgs)
244+
env:
245+
MSBUILDUSESERVER: "1"
236246
displayName: Code sign packages
237247

238248
# Windows installers bundle x86/x64/arm64 assets
@@ -247,6 +257,8 @@ extends:
247257
$(_BuildArgs)
248258
$(_InternalRuntimeDownloadArgs)
249259
$(WindowsInstallersLogArgs)
260+
env:
261+
MSBUILDUSESERVER: "1"
250262
displayName: Build Installers
251263

252264
# Windows installers bundle and sharedfx msi for arm64
@@ -265,6 +277,8 @@ extends:
265277
$(_PublishArgs)
266278
$(_InternalRuntimeDownloadArgs)
267279
$(WindowsArm64InstallersLogArgs)
280+
env:
281+
MSBUILDUSESERVER: "1"
268282
displayName: Build ARM64 Installers
269283

270284
artifacts:
@@ -616,6 +630,8 @@ extends:
616630
# Build the shared framework
617631
- script: ./eng/build.cmd -ci -prepareMachine -nativeToolsOnMachine -nobl -all -pack -arch x64
618632
/p:CrossgenOutput=false /p:ASPNETCORE_TEST_LOG_DIR=artifacts/log $(_InternalRuntimeDownloadArgs)
633+
env:
634+
MSBUILDUSESERVER: "1"
619635
displayName: Build shared fx
620636
# -noBuildRepoTasks -noBuildNative -noBuild to avoid repeating work done in the previous step.
621637
- script: ./eng/build.cmd -ci -prepareMachine -nativeToolsOnMachine -nobl -all -noBuildRepoTasks -noBuildNative -noBuild -test

.azure/pipelines/jobs/default-build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ jobs:
129129
- TeamName: AspNetCore
130130
- ${{ if ne(parameters.codeSign, true) }}:
131131
- _SignType: ''
132+
- ${{ if ne(parameters.isAzDOTestingJob, true) }}:
133+
- MSBUILDUSESERVER: "1"
132134
- LC_ALL: 'en_US.UTF-8'
133135
- LANG: 'en_US.UTF-8'
134136
- LANGUAGE: 'en_US.UTF-8'
@@ -348,6 +350,8 @@ jobs:
348350
- LANGUAGE: 'en_US.UTF-8'
349351
- ${{ if ne(parameters.codeSign, true) }}:
350352
- _SignType: ''
353+
- ${{ if ne(parameters.isAzDOTestingJob, true) }}:
354+
- MSBUILDUSESERVER: "1"
351355
- ${{ else }}:
352356
- ${{ if notin(variables['Build.Reason'], 'PullRequest') }}:
353357
- _SignType: real

0 commit comments

Comments
 (0)