Power build with PowerShell

Tuesday, November 20, 2007 – 3:32 PM

Here’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 = joinpath $env:temp lastbuild.log
function b { msbuild /l:FileLogger,Microsoft.Build.Engine;logfile=$lastBuild $args }
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. 1 Trackback(s)

  2. Nov 20, 2007: Web 2.0 - Social Media - Internet News - Blogging » Power build with PowerShell

Sorry, comments for this entry are closed at this time.