Skip to content

Commit

Permalink
msb aliases: launch via dotnet; add msbl (to binlog) and msblnoref (b…
Browse files Browse the repository at this point in the history
…inlog, no proj refs)
  • Loading branch information
davidjenni committed Mar 15, 2024
1 parent 6189960 commit 2e8e3da
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
4 changes: 3 additions & 1 deletion win/aliases.doskey
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ la=lsd -a --group-directories-first --extensionsort $*
ll=lsd -l --group-directories-first --extensionsort $*
ls=lsd --group-directories-first --extensionsort $*
ld=tre -d $*
msb=msbuild /p:TreatWarningsAsErrors=true /nr:false /m /clp:verbosity=minimal /flp:Verbosity=normal;LogFile=msbuild.log /flp3:PerformanceSummary;Verbosity=diag;LogFile=msbuild.diagnostics.log $*
msb=dotnet msbuild /p:TreatWarningsAsErrors=true /nr:false /m /clp:verbosity=minimal /flp:Verbosity=normal;LogFile=msbuild.log /flp3:PerformanceSummary;Verbosity=diag;LogFile=msbuild.diagnostics.log $*
msbl=dotnet msbuild /nr:false /m /clp:verbosity=minimal /bl $*
msblnoref=dotnet msbuild /nr:false /m /clp:verbosity=minimal /p:BuildProjectReferences=false /bl $*
a=attrib $*
c=cd $*
cc=pushd $*
Expand Down
15 changes: 15 additions & 0 deletions win/profile.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,21 @@ function msb { param ( [string[]] [Parameter(ValueFromRemainingArguments)] $rest
$rest
Write-Host 'logs at: $env:TMP\msbuild.log & $env:TMP\msbuild.diagnostics.log'
}
function msbl { param ( [string[]] [Parameter(ValueFromRemainingArguments)] $rest )
& dotnet msbuild "-nr:false" "-m" `
"-clp:verbosity=minimal" `
"-bl:$env:TMP\msbuild.binlog" `
$rest
Write-Host 'log at: $env:TMP\msbuild.binlog'
}
function msblnoref { param ( [string[]] [Parameter(ValueFromRemainingArguments)] $rest )
& dotnet msbuild "-nr:false" "-m" `
"-clp:verbosity=minimal" `
"-bl:$env:TMP\msbuild.binlog" `
"-p:BuildProjectReferences=false" `
$rest
Write-Host 'log at: $env:TMP\msbuild.binlog'
}

function OnViModeChange {
if ($args[0] -eq 'Command') {
Expand Down

0 comments on commit 2e8e3da

Please sign in to comment.