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.

You can also create a custom check-in policy to perform checks that are not available by<br />

default. For example, you can disallow code patterns such as banned application<br />

programming interface (API) calls, or you can write a policy to enforce your team’s<br />

specific coding style guidelines, such as where braces should be positioned <strong>with</strong>in your<br />

source code.<br />

Additional Resources<br />

• For more information about creating check-in policies, see “How To – Create Custom<br />

Check-in Policies in <strong>Visual</strong> <strong>Studio</strong> <strong>Team</strong> <strong>Foundation</strong> <strong>Server</strong>” in this guide.<br />

Set Up Notifications to Inform You When Developers Bypass Check-in<br />

Policies<br />

<strong>Team</strong> <strong>Foundation</strong> <strong>Server</strong> Version Control does not prevent you from overriding a checkin<br />

policy. However, you can use the following steps to detect if a check-in policy has<br />

been overridden:<br />

1. Use the <strong>Team</strong> <strong>Foundation</strong> <strong>Server</strong> Eventing Service (from the <strong>Team</strong> <strong>Foundation</strong> Core<br />

Services API) for hooking check-in events.<br />

2. Write a Notify method that parses the details of the changeset and then reacts to it if<br />

an override has occurred.<br />

Alternatively, you can manually scan changeset history to discover policy overrides.<br />

Additional Resources<br />

• To learn more about overriding a check-in policy, see “How to: Override a Check-in<br />

Policy” at http://msdn2.microsoft.com/en-us/library/ms245460(VS.80).aspx<br />

Process Templates<br />

• Use the MSF Agile process template when working on projects that only require<br />

a lightweight or informal process.<br />

• Use the MSF CMMI process template when working on projects requiring a<br />

more formal process or conformance <strong>with</strong> CMMI standards.<br />

• Consider using a minimal process template.<br />

• Modify an existing process template to match your team’s process.<br />

Use the MSF Agile Process Template When Working on Projects That<br />

Only Require a Lightweight or Informal Process<br />

When using Test-Driven <strong>Development</strong> (TDD) or other agile methodologies, you should<br />

use the MSF for Agile Software <strong>Development</strong> (MSF Agile) process template. This is a<br />

lightweight process for agile software projects. You should use this project template as<br />

your first choice, unless you specifically need the additional process improvement<br />

features provided by the MSF for CMMI Software <strong>Development</strong> (MSF CMMI) process<br />

template.

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

Saved successfully!

Ooh no, something went wrong!