@@ -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
0 commit comments