Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions eng/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,10 @@ if ($vs) {
# Disable .NET runtime signature validation errors which errors for local builds
$env:VSDebugger_ValidateDotnetDebugLibSignatures=0;

# MSBuild Server dogfood.
$env:DOTNET_CLI_USE_MSBUILD_SERVER=1;
$env:MSBUILD_USE_SERVER=1;

# Respect the RuntimeConfiguration variable for building inside VS with different runtime configurations
if ($runtimeConfiguration)
{
Expand Down
3 changes: 3 additions & 0 deletions eng/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ while [[ -h "$source" ]]; do
done
scriptroot="$( cd -P "$( dirname "$source" )" && pwd )"

export MSBUILDUSESERVER=1
export DOTNET_CLI_USE_MSBUILD_SERVER=1

usage()
{
echo "Common settings:"
Expand Down
8 changes: 8 additions & 0 deletions eng/pipelines/common/global-build-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,14 @@ jobs:
- ${{ format('build_{0}{1}_{2}_{3}_{4}', parameters.osGroup, parameters.osSubgroup, parameters.archType, coalesce(globalBuild.buildConfig, parameters.buildConfig), globalBuild.nameSuffix) }}

variables:
- name: "MSBUILDUSESERVER"
value: "1"
- name: "env:MSBUILDUSESERVER"
value: "1"
- name: "DOTNET_CLI_USE_MSBUILD_SERVER"
value: "1"
- name: "env:DOTNET_CLI_USE_MSBUILD_SERVER"
value: "1"
- ${{ if eq(variables['System.TeamProject'], 'internal') }}:
- group: DotNet-HelixApi-Access
- group: AzureDevOps-Artifact-Feeds-Pats
Expand Down
4 changes: 4 additions & 0 deletions eng/pipelines/common/templates/global-build-step.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,13 @@ parameters:
container: ''
condition: succeeded()


steps:
- script: $(Build.SourcesDirectory)$(dir)build$(scriptExt) -ci ${{ parameters.archParameter }} $(_osParameter) ${{ parameters.crossArg }} ${{ parameters.buildArgs }} ${{ parameters.targetCxxLibraryConfigurationArgs }} $(_officialBuildParameter) $(_overrideTestScriptWindowsCmdParameter)
displayName: ${{ parameters.displayName }}
env:
MSBUILDUSESERVER: '1'
DOTNET_CLI_USE_MSBUILD_SERVER: '1'
${{ if eq(parameters.useContinueOnErrorDuringBuild, true) }}:
continueOnError: ${{ parameters.shouldContinueOnError }}
${{ if ne(parameters.container, '') }}:
Expand Down
3 changes: 3 additions & 0 deletions eng/pipelines/global-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ extends:
eq(stageDependencies.EvaluatePaths.evaluate_paths.outputs['SetPathVars_coreclr.containsChange'], true),
eq(stageDependencies.EvaluatePaths.evaluate_paths.outputs['SetPathVars_non_mono_and_wasm.containsChange'], true),
eq(variables['isRollingBuild'], true))
env:
MSBUILDUSESERVER: 1
DOTNET_CLI_USE_MSBUILD_SERVER: 1

#
# Build with RuntimeFlavor only. This exercise code paths where only RuntimeFlavor is
Expand Down
Loading