In Team Foundation Server 2008 you can configure a project alert that sends an alert to your email address when a build completes. This is a very useful if a build fails, but if you enabled continuous integration your inbox will probably contain many alerts of successful builds. The out-of-the-box functionality for configuring alerts is very limited, but luckily Microsoft has released Visual Studio Team System 2008 Team Foundation Server Power Tools which is an add-on to Visual Studio 2008.
One of the tools in this package is called Alert Editor, and it lets you subscribe to build faults in a few simple steps:
- Select “Alerts Editor…” from the “Team” menu.
- Click “New” on the toolbar to create a new alert.
- Select “Failed builds” from the “Build Alerts” sub group, and click OK.
- You might have to enter you e-mail address in the Send To field if Team Foundation Server can’t resolve your name.

This alert has a filter that only sends an alert if StatusCode is not Succeded. If you already has an alert, you can add this clause to your existing alert definition. - Select another alert or close the window to save the changes before testing the alert.
Update: Thanks to TerrenceJ in my comments for recommending an improved filter.


