Skip to content

Commit

Permalink
Fix Get-BuildErrors
Browse files Browse the repository at this point in the history
  • Loading branch information
ocalvo committed Sep 10, 2021
1 parent 8d890a6 commit 9540a83
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions MSBuild-Alias.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@ function global:msb()
ps msbuild* | where { $_.StartInfo.EnvironmentVariables['RepoRoot'] -eq $env:RepoRoot } | kill -force
$global:lastBuildErrors = $null
$date = [datetime]::Now
$dMarker = $date.ToString("yyMMdd-HHmmss.")
$logFileName = ("w:\build"+$dMarker+$env:_BuildType)

#$dMarker = $date.ToString("yyMMdd-HHmmss.")
#$logFileName = (".\build"+$dMarker+$env:_BuildType)
$logFileName = ("build"+$env:_BuildType) # If you change this, update Get-BuildErrors

.$env:_msBuildPath "/bl:LogFile=$logFileName.binlog" /nologo /v:$env:_MSBUILD_VERBOSITY $env:_MSBUILD_EXTRAPARAMS /m $args "-flp2:LogFile=$logFileName.err;errorsonly" "-flp3:LogFile=$logFileName.wrn;warningsonly"
$global:lastBuildErrors = Get-BuildErrors
if ($null -ne $global:lastBuildErrors)
Expand Down
Binary file modified PwrRazzle.psd1
Binary file not shown.

0 comments on commit 9540a83

Please sign in to comment.