Thu, Nov 3 2005 1:34 AM
Erwyn van der Meer
How to enfore clean build for check-in in Visual Studio Team System
The clean build policy is indeed gone from Team Foundation Server Beta 3.
If you only want to enfore that a project builds without errors before you can check-in one or more of its files, you must now use the code analysis check-in policy.
You can add a code analysis check-in policy through the menu item Team | Team Project Settings | Source Control. Go to the tab Check-in Policy and click the Add button. Select Code Analysis and click OK. Now the Code Analysis Policy Editor appears. You can deselect all of the code analysis rules and Visual Studio will still check for a succesfull build before allowing a check-in, like so:

Here is a screenshot of the policy violation on check-in that occurs when a project has not been build succesfully:

Filed under: .NET