Check for Compilation Warnings and Errors Check-in Policy (2008)
This is a custom check-in policy that, when added to a Team Project, will check for compilation warnings and/or errors before allowing code to be checked in.
To add this check-in policy to your Team Project:
Once installed and configured, the check-in policy works like any other. You can check thePending Changes window for violations as seen in this screen shot:
This version of the Check for Compilation Warnings and Errors Check-in Policy supportsVisual Studio 2008 and Team Foundation Server 2008. The Visual Studio 2010 version is availablehere.