@@ -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}
12975catch {
0 commit comments