binary logging defaults for build (#10296)

This commit is contained in:
Kevin Ransom (msft) 2020-10-21 13:55:47 -04:00 коммит произвёл nosami
Родитель b672c88554
Коммит a79940a705
3 изменённых файлов: 10 добавлений и 8 удалений

Просмотреть файл

@ -1,2 +1,2 @@
@echo off
powershell -ExecutionPolicy ByPass -NoProfile -command "& """%~dp0eng\build.ps1""" -build -restore -binaryLog %*"
powershell -ExecutionPolicy ByPass -NoProfile -command "& """%~dp0eng\build.ps1""" -build -restore %*"

Просмотреть файл

@ -13,4 +13,4 @@ while [[ -h $source ]]; do
done
scriptroot="$( cd -P "$( dirname "$source" )" && pwd )"
"$scriptroot/eng/build.sh" --build --restore --binaryLog $@
"$scriptroot/eng/build.sh" --build --restore $@

Просмотреть файл

@ -36,8 +36,9 @@ param (
[switch][Alias('proto')]$bootstrap,
[string]$bootstrapConfiguration = "Proto",
[string]$bootstrapTfm = "net472",
[switch][Alias('bl')]$binaryLog,
[switch][Alias('nobl')]$excludeCIBinaryLog,
[switch][Alias('bl')]$binaryLog = $true,
[switch][Alias('nobl')]$excludeCIBinaryLog = $false,
[switch][Alias('nolog')]$noBinaryLog = $false,
[switch]$ci,
[switch]$official,
[switch]$procdump,
@ -73,6 +74,7 @@ function Print-Usage() {
Write-Host " -verbosity <value> Msbuild verbosity: q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic]"
Write-Host " -deployExtensions Deploy built vsixes"
Write-Host " -binaryLog Create MSBuild binary log (short: -bl)"
Write-Host " -noLog Turn off logging (short: -nolog)"
Write-Host " -excludeCIBinaryLog When running on CI, allow no binary log (short: -nobl)"
Write-Host ""
Write-Host "Actions:"
@ -160,6 +162,10 @@ function Process-Arguments() {
$script:testpack = $False;
}
if ($noBinaryLog) {
$script:binaryLog = $False;
}
foreach ($property in $properties) {
if (!$property.StartsWith("/p:", "InvariantCultureIgnoreCase")) {
Write-Host "Invalid argument: $property"
@ -192,10 +198,6 @@ function BuildSolution() {
Write-Host "$($solution):"
if ($binaryLog -and $excludeCIBinaryLog) {
Write-Host "Invalid argument -binarylog(-bl) and -excludeCIBinaryLog(-nobl) cannot be set at the same time"
ExitWithExitCode 1
}
$bl = if ($binaryLog) { "/bl:" + (Join-Path $LogDir "Build.binlog") } else { "" }
$projects = Join-Path $RepoRoot $solution