Skip to content

Commit eb450c9

Browse files
committed
disable bootstrap
1 parent 27f9d42 commit eb450c9

File tree

2 files changed

+2
-68
lines changed

2 files changed

+2
-68
lines changed

eng/cibuild_bootstrapped_msbuild.ps1

Lines changed: 1 addition & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -65,65 +65,11 @@ try {
6565

6666
if ($buildStage1)
6767
{
68-
& $PSScriptRoot\Common\Build.ps1 -restore -build -ci -msbuildEngine $msbuildEngine /p:CreateBootstrap=true @properties
68+
& $PSScriptRoot\Common\Build.ps1 -restore -build -test -ci -msbuildEngine $msbuildEngine /p:CreateBootstrap=true @properties
6969
}
7070

7171
KillProcessesFromRepo
7272

73-
$bootstrapRoot = Join-Path $Stage1BinDir "bootstrap"
74-
75-
# we need to do this to guarantee we have/know where dotnet.exe is installed
76-
$dotnetToolPath = InitializeDotNetCli $true
77-
$dotnetExePath = Join-Path $dotnetToolPath "dotnet.exe"
78-
79-
if ($msbuildEngine -eq 'vs')
80-
{
81-
$buildToolPath = Join-Path $bootstrapRoot "net472\MSBuild\Current\Bin\MSBuild.exe"
82-
$buildToolCommand = "";
83-
$buildToolFramework = "net472"
84-
}
85-
else
86-
{
87-
$buildToolPath = $dotnetExePath
88-
$buildToolCommand = Join-Path $bootstrapRoot "net8.0\MSBuild\MSBuild.dll"
89-
$buildToolFramework = "net8.0"
90-
}
91-
92-
# Use separate artifacts folder for stage 2
93-
# $env:ArtifactsDir = Join-Path $ArtifactsDir "2\"
94-
95-
& $dotnetExePath build-server shutdown
96-
97-
if ($buildStage1)
98-
{
99-
if (Test-Path $Stage1Dir)
100-
{
101-
Remove-Item -Force -Recurse $Stage1Dir
102-
}
103-
104-
Move-Item -Path $ArtifactsDir -Destination $Stage1Dir -Force
105-
}
106-
107-
$buildTool = @{ Path = $buildToolPath; Command = $buildToolCommand; Tool = $msbuildEngine; Framework = $buildToolFramework }
108-
$global:_BuildTool = $buildTool
109-
110-
# Ensure that debug bits fail fast, rather than hanging waiting for a debugger attach.
111-
$env:MSBUILDDONOTLAUNCHDEBUGGER="true"
112-
113-
# Opt into performance logging. https://github.com/dotnet/msbuild/issues/5900
114-
$env:DOTNET_PERFLOG_DIR=$PerfLogDir
115-
116-
# When using bootstrapped MSBuild:
117-
# - Turn off node reuse (so that bootstrapped MSBuild processes don't stay running and lock files)
118-
# - Do run tests
119-
# - Don't try to create a bootstrap deployment
120-
if ($onlyDocChanged) {
121-
& $PSScriptRoot\Common\Build.ps1 -restore -build -ci /p:CreateBootstrap=false /nr:false @properties
122-
}
123-
else {
124-
& $PSScriptRoot\Common\Build.ps1 -restore -build -test -ci /p:CreateBootstrap=false /nr:false @properties
125-
}
126-
12773
exit $lastExitCode
12874
}
12975
catch {

eng/cibuild_bootstrapped_msbuild.sh

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ InitializeDotNetCli true
5151

5252
if [[ $build_stage1 == true ]];
5353
then
54-
/bin/bash "$ScriptRoot/common/build.sh" --restore --build --ci --configuration $configuration /p:CreateBootstrap=true $properties $extra_properties || exit $?
54+
/bin/bash "$ScriptRoot/common/build.sh" --restore --build --ci --test --configuration $configuration /p:CreateBootstrap=false $properties $extra_properties || exit $?
5555
fi
5656

5757
bootstrapRoot="$Stage1Dir/bin/bootstrap"
@@ -77,15 +77,3 @@ export DOTNET_PERFLOG_DIR=$PerfLogDir
7777
# Prior to 3.0, the Csc task uses this environment variable to decide whether to run
7878
# a CLI host or directly execute the compiler.
7979
export DOTNET_HOST_PATH="$_InitializeDotNetCli/dotnet"
80-
81-
# When using bootstrapped MSBuild:
82-
# - Turn off node reuse (so that bootstrapped MSBuild processes don't stay running and lock files)
83-
# - Do run tests
84-
# - Don't try to create a bootstrap deployment
85-
if [ $onlyDocChanged = 0 ]
86-
then
87-
. "$ScriptRoot/common/build.sh" --restore --build --test --ci --nodereuse false --configuration $configuration /p:CreateBootstrap=false $properties $extra_properties
88-
89-
else
90-
. "$ScriptRoot/common/build.sh" --restore --build --ci --nodereuse false --configuration $configuration /p:CreateBootstrap=false $properties $extra_properties
91-
fi

0 commit comments

Comments
 (0)