26.04.2015 Views

Team Development with Visual Studio Team Foundation Server

Team Development with Visual Studio Team Foundation Server

Team Development with Visual Studio Team Foundation Server

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

• For more information about branching, see “How to: Branch Files and Folders” at<br />

http://msdn2.microsoft.com/en-us/library/ms181425(VS.80).aspx<br />

• For more information about merging, see “How to: Merge Files and Folders” at<br />

http://msdn2.microsoft.com/en-us/library/ms181428(VS.80).aspx<br />

• For additional descriptions of how to branch and merge in <strong>Visual</strong> <strong>Studio</strong> 2005, see<br />

“Branching and Merging <strong>Team</strong> <strong>Foundation</strong> Source Control” at<br />

http://msdn2.microsoft.com/en-us/library/ms181423(VS.80).aspx<br />

Use Check-in Policies to Improve Check-in Quality<br />

You should use a combination of code analysis and testing policies to improve check-in<br />

quality. For example, use the supplied testing policy to ensure that specific tests are<br />

executed and passed prior to allowing source to be checked into TFS source control. You<br />

can also configure a code analysis policy to help ensure that your code meets certain<br />

quality standards by ensuring that security, performance, portability, maintainability, and<br />

reliability rules are passed.<br />

By enforcing this type of check-in policy in addition to policies that enforce coding<br />

standards and guidelines, you can test your code against specific code quality issues.<br />

To enforce a code analysis check-in policy for a team project, you right-click your team<br />

project in <strong>Team</strong> Explorer, point to <strong>Team</strong> Project Settings, and then click Source<br />

Control. Click the Check-in Policy tab, click Add, and then select and configure the<br />

appropriate policy.<br />

Additional Resources<br />

• For more information about creating and using a custom check-in policy, see “How<br />

To – Step Through Creating Custom Check-in Policies for TFS” in this guide.<br />

• To learn how to customize a check-in policy, see “Walkthrough: Customizing Checkin<br />

Policies and Notes” at http://msdn2.microsoft.com/enus/library/ms181281(VS.80).aspx<br />

• To see sample code that will disallow selected patterns on check-in, see “Checkin<br />

Policy to Disallow Certain Patterns” at<br />

http://blogs.msdn.com/jmanning/archive/2006/02/02/523125.aspx<br />

• To see sample code that will enforce comments on check-in, see “Sample Checkin<br />

Policy: Make Sure the Comment Isn’t Empty” at<br />

http://blogs.msdn.com/jmanning/archive/2006/01/21/515858.aspx<br />

• To learn how to register a new check-in policy, see “I’ve Made a New Check-In<br />

Policy! How Do I Add It?” at<br />

http://blogs.msdn.com/jmanning/archive/2006/02/07/526778.aspx<br />

Use Build Notification Alerts to Learn When the Build Has Completed<br />

To keep track of your build process, you can create alerts that send e-mail messages to<br />

you or to others when a build has completed.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!