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.

long as the revision does not conflict <strong>with</strong> a change that is already pending in your<br />

workspace.<br />

5. Optionally, you can clear the Restore work items and check-in notes option if you<br />

do not want to have the work items and check-in notes associated <strong>with</strong> the shelveset<br />

restored. When the Details dialog box appears, select the shelveset or shelveset items<br />

you want to unshelve into your workspace, and then click Unshelve.<br />

Additional Resources<br />

• For more information, see “How to: Shelve and Unshelve Pending Changes” at<br />

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

Resolve One Work Item per Check-in<br />

After resolving a work item, check in your pending changes and update the work item<br />

status. This practice serves the following purposes:<br />

• It provides a consistent record in the source control database that can be used to<br />

review changes per work item, or to back a work item out if necessary in the future.<br />

• It ensures that you do not wait too long between check-ins. The longer you wait<br />

between check-ins, the more likely that you will have a conflict that requires a<br />

manual merge and additional testing.<br />

Additional Resources<br />

• For more information about check-ins, see “How to: Check In Pending Changes” at<br />

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

• For more information about work items and changesets, see “How to: Associate<br />

Work Items <strong>with</strong> Changesets” at http://msdn2.microsoft.com/enus/library/ms181410(VS.80).aspx<br />

• For more information about reviewing work item details, see “How to: View Work<br />

Item Details from Pending Changes Window” at http://msdn2.microsoft.com/enus/library/ms245467(VS.80).aspx<br />

Use Check-in Policies to Enforce Coding Standards<br />

Use check-in policies to enforce coding standards across your development team. Checkin<br />

policies help to ensure that all source code checked into TFS source control meets your<br />

defined coding standards.<br />

The code analysis check-in policies that ship <strong>with</strong> TFS enables you to ensure that static<br />

code analysis has been run on code before it is checked in. You can fine-tune the code<br />

analysis policy to check many different rules. For example, you can check rules<br />

governing design, interoperability, maintainability, mobility, naming conventions,<br />

reliability, and more.<br />

To enforce a code analysis check-in policy for a team project<br />

1. In <strong>Team</strong> Explorer, right-click your team project, point to <strong>Team</strong> Project Settings, and<br />

then click Source Control.

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

Saved successfully!

Ooh no, something went wrong!