diff --git a/.azure/pipelines/ci.yml b/.azure/pipelines/ci.yml index eb37d3d2ec7d..5689fb05c99c 100644 --- a/.azure/pipelines/ci.yml +++ b/.azure/pipelines/ci.yml @@ -173,6 +173,8 @@ extends: $(_BuildArgs) $(_InternalRuntimeDownloadArgs) $(Windows64LogArgs) + env: + MSBUILDUSESERVER: "1" displayName: Build x64 # Build the x86 shared framework @@ -190,6 +192,8 @@ extends: $(_BuildArgs) $(_InternalRuntimeDownloadArgs) $(Windows86LogArgs) + env: + MSBUILDUSESERVER: "1" displayName: Build x86 # Build the arm64 shared framework @@ -207,6 +211,8 @@ extends: $(_BuildArgs) $(_InternalRuntimeDownloadArgs) $(WindowsArm64LogArgs) + env: + MSBUILDUSESERVER: "1" displayName: Build ARM64 - script: .\src\SiteExtensions\build.cmd @@ -218,6 +224,8 @@ extends: -noBuildNative $(_BuildArgs) $(_InternalRuntimeDownloadArgs) + env: + MSBUILDUSESERVER: "1" displayName: Build SiteExtension # This runs code-signing on all packages, zips, and jar files as defined in build/CodeSign.targets. If @@ -233,6 +241,8 @@ extends: /p:DotNetSignType=$(_SignType) $(_BuildArgs) $(WindowsSignLogArgs) + env: + MSBUILDUSESERVER: "1" displayName: Code sign packages # Windows installers bundle x86/x64/arm64 assets @@ -247,6 +257,8 @@ extends: $(_BuildArgs) $(_InternalRuntimeDownloadArgs) $(WindowsInstallersLogArgs) + env: + MSBUILDUSESERVER: "1" displayName: Build Installers # Windows installers bundle and sharedfx msi for arm64 @@ -265,6 +277,8 @@ extends: $(_PublishArgs) $(_InternalRuntimeDownloadArgs) $(WindowsArm64InstallersLogArgs) + env: + MSBUILDUSESERVER: "1" displayName: Build ARM64 Installers artifacts: @@ -616,6 +630,8 @@ extends: # Build the shared framework - script: ./eng/build.cmd -ci -prepareMachine -nativeToolsOnMachine -nobl -all -pack -arch x64 /p:CrossgenOutput=false /p:ASPNETCORE_TEST_LOG_DIR=artifacts/log $(_InternalRuntimeDownloadArgs) + env: + MSBUILDUSESERVER: "1" displayName: Build shared fx # -noBuildRepoTasks -noBuildNative -noBuild to avoid repeating work done in the previous step. - script: ./eng/build.cmd -ci -prepareMachine -nativeToolsOnMachine -nobl -all -noBuildRepoTasks -noBuildNative -noBuild -test diff --git a/.azure/pipelines/jobs/default-build.yml b/.azure/pipelines/jobs/default-build.yml index 5cce6fda9738..0283be806cf1 100644 --- a/.azure/pipelines/jobs/default-build.yml +++ b/.azure/pipelines/jobs/default-build.yml @@ -129,6 +129,8 @@ jobs: - TeamName: AspNetCore - ${{ if ne(parameters.codeSign, true) }}: - _SignType: '' + - ${{ if ne(parameters.isAzDOTestingJob, true) }}: + - MSBUILDUSESERVER: "1" - LC_ALL: 'en_US.UTF-8' - LANG: 'en_US.UTF-8' - LANGUAGE: 'en_US.UTF-8' @@ -348,6 +350,8 @@ jobs: - LANGUAGE: 'en_US.UTF-8' - ${{ if ne(parameters.codeSign, true) }}: - _SignType: '' + - ${{ if ne(parameters.isAzDOTestingJob, true) }}: + - MSBUILDUSESERVER: "1" - ${{ else }}: - ${{ if notin(variables['Build.Reason'], 'PullRequest') }}: - _SignType: real