Power build with PowerShell

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 = 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.

Share on:
  • Digg
  • description
  • del.icio.us
  • TwitThis
  • Live
  • Google
  1. 1 Trackback(s)

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

Post a Comment

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word