Power build with PowerShell
November 20, 2007 – 3:32 pmHere’s a little PowerShell script I use to automatically log my build output somewhere so I can look at the last thing I tried to build if need be. Add the following to your profile:
$lastBuild = join-path $env:temp lastbuild.log function b { msbuild /l:“FileLogger,Microsoft.Build.Engine;logfile=$lastBuild“ $args } function lb { notepad $lastBuild }
Now I can just use lb to get to the full build output any time I need to diagnose issue with it.






1 Trackback(s)