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.

Modify the Paths to Solutions in the TFSBuild.proj Files, When Creating<br />

a Complete Branch<br />

When you create a new branch, including the <strong>Team</strong> Build Types, the paths in the build<br />

types still point to the previous location. In order for the build to work on the new branch,<br />

you must update the paths in the build type project files so that they reference the new<br />

path locations created after the branching operation.<br />

When you create a full branch, you also branch the build types. The build types contain<br />

references to folders from the original source control tree. To have these build types refer<br />

to the branch folders, you must edit the folder references in these files.<br />

To perform the update, check out the build types from the branch you want to modify,<br />

apply the updates, and then commit the changes to the branch.<br />

Additional Resources<br />

• For more information about how to update your build types, see “How to: Update<br />

Build Types on Branched <strong>Team</strong> Projects” at http://msdn2.microsoft.com/enus/library/ms252500(VS.80).aspx<br />

Check-in Policies<br />

• Use check-in policies to improve check-in quality.<br />

• Use check-in policies to associate work items <strong>with</strong> the build.<br />

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

Use a combination of code analysis and testing policies to improve check-in quality. For<br />

example, use the supplied testing policy to ensure that specific tests are executed and<br />

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

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

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 />

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 “Check-in<br />

Policy to Disallow Certain Patterns” at<br />

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

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

Saved successfully!

Ooh no, something went wrong!