Check for Warnings/Errors Check-in Policy (2008)

Check-in Policies, TFS
A couple of weeks ago, I posted on an update for the Check for Warnings/Errors Check-in Policy for Visual Studio 2010 / TFS 2010.  This version was posted here on the Visual Studio Gallery.  Since then, I’ve received some questions about an update for the Visual Studio 2008 / TFS 2008 version of this check-in policy as the one I posted last September had an issue when checking in source code from the command line. I have now also posted an updated version of the Check for Warnings/Errors Check-in Policy for Visual Studio 2008 / TFS 2008.  If you’re still using TFS 2008 (and I’m sure a lot of you are) then you can download the updated check-in policy here. Usage: To add this check-in policy to your Team Project:…
Read More

Check for Warnings/Errors Check-in Policy

Check-in Policies, TFS, Visual Studio 2010
A while back, I wrote about the Check for Warnings/Errors Check-in Policy – a custom check-in policy that I had developed for Team Foundation Server 2008.  Yesterday, I published version 2.1, updated for Team Foundation Server 2010, to the Visual Studio Gallery.  The features are the same as the TFS 2008 version with a couple of exceptions: You now have the ability to restrict the set of warnings to Code Contract warnings only. The settings for the check-in policy are now stored as TFS properties (more on this in an upcoming post). Here are the details… Usage: To add this check-in policy to your Team Project: Download and install the Check for Compilation Warnings and Errors Check-in Policy (see Where to Download below).  NOTE: Anyone checking in code will need…
Read More

Check for Warnings/Errors Check-in Policy

Check-in Policies, Team System, TFS
A few days ago a fellow co-worker asked if I knew of a TFS check-in policy that checks for Visual Studio compilation errors and/or warnings.  I wasn’t aware of such a check-in policy (although it may exist out there somewhere) so I decided to go ahead and create it (who doesn’t love a challenge?!). When active, this check-in policy will evaluate the current Visual Studio solution to determine if any build warnings and/or errors are present.  If so, the check-in policy will fail and will prevent the code from being checked in (this can, of course, be overridden). To enable this check-in policy: Download and install the CheckForWarningsPolicy from here. Right-click the desired team project within the Team Explorer client and select the “Team Project Settings—>Source Control” menu item. Click…
Read More