@@ -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 :
@@ -534,32 +548,33 @@ extends:
534548 parameters :
535549 inputName : Linux_musl_arm64
536550
551+ - template : .azure/pipelines/jobs/default-build.yml@self
552+ parameters :
553+ jobName : Windows_Test
554+ jobDisplayName : " Test: Windows Server x64"
555+ agentOs : Windows
556+ isAzDOTestingJob : true
557+ continueOnError : true
558+ # Just uploading artifacts/logs/ files can take 15 minutes. Doubling the cancel timeout for this job.
559+ cancelTimeoutInMinutes : 30
560+ buildArgs : -all -pack -test -binaryLog /p:SkipHelixReadyTests=true /p:SkipIISNewHandlerTests=true /p:SkipIISTests=true
561+ /p:SkipIISExpressTests=true /p:SkipIISNewShimTests=true /p:RunBlazorPlaywrightTemplateTests=true /p:DoNotCleanUpTemplates=true
562+ $(_InternalRuntimeDownloadArgs)
563+ beforeBuild :
564+ - powershell : " & ./src/Servers/IIS/tools/UpdateIISExpressCertificate.ps1; & ./src/Servers/IIS/tools/update_schema.ps1"
565+ displayName : Setup IISExpress test certificates and schema
566+ artifacts :
567+ - name : Windows_Test_Logs_Attempt_$(System.JobAttempt)
568+ path : artifacts/log/
569+ publishOnError : true
570+ includeForks : true
571+ - name : Windows_Test_Results_Attempt_$(System.JobAttempt)
572+ path : artifacts/TestResults/
573+ publishOnError : true
574+ includeForks : true
575+
537576 - ${{ if and(ne(parameters.skipTests, 'true'), in(variables['Build.Reason'], 'PullRequest', 'Manual')) }} :
538577 # Test jobs
539- - template : .azure/pipelines/jobs/default-build.yml@self
540- parameters :
541- jobName : Windows_Test
542- jobDisplayName : " Test: Windows Server x64"
543- agentOs : Windows
544- isAzDOTestingJob : true
545- # Just uploading artifacts/logs/ files can take 15 minutes. Doubling the cancel timeout for this job.
546- cancelTimeoutInMinutes : 30
547- buildArgs : -all -pack -test -binaryLog /p:SkipHelixReadyTests=true /p:SkipIISNewHandlerTests=true /p:SkipIISTests=true
548- /p:SkipIISExpressTests=true /p:SkipIISNewShimTests=true /p:RunTemplateTests=false /p:RunBlazorPlaywrightTemplateTests=true
549- $(_InternalRuntimeDownloadArgs)
550- beforeBuild :
551- - powershell : " & ./src/Servers/IIS/tools/UpdateIISExpressCertificate.ps1; & ./src/Servers/IIS/tools/update_schema.ps1"
552- displayName : Setup IISExpress test certificates and schema
553- artifacts :
554- - name : Windows_Test_Logs_Attempt_$(System.JobAttempt)
555- path : artifacts/log/
556- publishOnError : true
557- includeForks : true
558- - name : Windows_Test_Results_Attempt_$(System.JobAttempt)
559- path : artifacts/TestResults/
560- publishOnError : true
561- includeForks : true
562-
563578 - template : .azure/pipelines/jobs/default-build.yml@self
564579 parameters :
565580 jobName : MacOS_Test
@@ -615,6 +630,8 @@ extends:
615630 # Build the shared framework
616631 - script : ./eng/build.cmd -ci -prepareMachine -nativeToolsOnMachine -nobl -all -pack -arch x64
617632 /p:CrossgenOutput=false /p:ASPNETCORE_TEST_LOG_DIR=artifacts/log $(_InternalRuntimeDownloadArgs)
633+ env :
634+ MSBUILDUSESERVER : " 1"
618635 displayName : Build shared fx
619636 # -noBuildRepoTasks -noBuildNative -noBuild to avoid repeating work done in the previous step.
620637 - script : ./eng/build.cmd -ci -prepareMachine -nativeToolsOnMachine -nobl -all -noBuildRepoTasks -noBuildNative -noBuild -test
@@ -668,16 +685,15 @@ extends:
668685 path : artifacts/log/
669686 publishOnError : true
670687 includeForks : true
671-
672688 # Source build
673689 - template : /eng/common/templates-official/job/source-build.yml@self
674690 parameters :
675691 enableInternalSources : true
676692 platform :
677693 name : ' Managed'
678- container : ' mcr.microsoft.com/dotnet-buildtools/prereqs:centos-stream8 '
679- buildScript : ' ./eng/build.sh --publish --no-build-repo-tasks $(_PublishArgs) $(_InternalRuntimeDownloadArgs) '
680- skipPublishValidation : true
694+ container : ' mcr.microsoft.com/dotnet-buildtools/prereqs:centos-stream-10-amd64 '
695+ buildScript : ' ./eng/build.sh'
696+ buildArguments : ' --source-build $(_InternalRuntimeDownloadArgs) '
681697 jobProperties :
682698 timeoutInMinutes : 120
683699 variables :
0 commit comments