Skip to content

Commit 2dbca19

Browse files
KevinRansombaronfel
authored andcommitted
Add implementation -f -excludeCIBinaryLog (#9816)
1 parent 1fd9141 commit 2dbca19

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

eng/Build.ps1

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ param (
3737
[string]$bootstrapConfiguration = "Proto",
3838
[string]$bootstrapTfm = "net472",
3939
[switch][Alias('bl')]$binaryLog,
40+
[switch][Alias('nobl')]$excludeCIBinaryLog,
4041
[switch]$ci,
4142
[switch]$official,
4243
[switch]$procdump,
@@ -69,6 +70,7 @@ function Print-Usage() {
6970
Write-Host " -verbosity <value> Msbuild verbosity: q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic]"
7071
Write-Host " -deployExtensions Deploy built vsixes"
7172
Write-Host " -binaryLog Create MSBuild binary log (short: -bl)"
73+
Write-Host " -excludeCIBinaryLog When running on CI, allow no binary log (short: -nobl)"
7274
Write-Host ""
7375
Write-Host "Actions:"
7476
Write-Host " -restore Restore packages (short: -r)"
@@ -173,7 +175,12 @@ function BuildSolution() {
173175

174176
Write-Host "$($solution):"
175177

178+
if ($binaryLog -and $excludeCIBinaryLog) {
179+
Write-Host "Invalid argument -binarylog(-bl) and -excludeCIBinaryLog(-nobl) cannot be set at the same time"
180+
ExitWithExitCode 1
181+
}
176182
$bl = if ($binaryLog) { "/bl:" + (Join-Path $LogDir "Build.binlog") } else { "" }
183+
177184
$projects = Join-Path $RepoRoot $solution
178185
$officialBuildId = if ($official) { $env:BUILD_BUILDNUMBER } else { "" }
179186
$toolsetBuildProj = InitializeToolset

0 commit comments

Comments
 (0)