I am trying to create project alert with following requirements:

when only *.config files in one specific folder are checked in, the TFS will send out a email

How can I set up such a project alert

By the way, Why this forum don't have FAQ sections so people can find the answers withou asking the same question again and again



Re: Team Foundation Server - General Create a custom projec Alert to Send email

Hua Chen - MSFT

Hello Peter:

There is an default email alert for check in event.

But this alert occurs when anything is checked in.

Here are two ways you may try.

First One:

You may use the VersionControlServer class in Team Foundation Server SDK

This class is in:

Namespace: Microsoft.TeamFoundation.VersionControl.Client

Assembly: Microsoft.TeamFoundation.VersionControl.Client(microsoft.teamfoundation.versioncontrol.client.dll)

Listen to the public CommitCheckin event of the class.

Send email in the event handler when you find a config file is checked in.

For more information:

Team Foundation Server SDK

Second One

You may add your own check in policies and apply these policies to team projects.

You can create a new policy plug-in using Team Foundation Server SDK.

In the plug-in you can examine if the file in the pendingchange is a config files using TFS SDK classes.

And you can also add email alert codes in the plug-in assembly.

For more information of Check-in Policy Extensibility:

Here is a example about check - in policy:


You can find more TFS SDK examples in the VS 2005 SDK

Here is a download link for VS 2005 SDK: FamilyID=51A5C65B-C020-4E08-8AC0-3EB9C06996F4&displaylang=en

Notice: I have not verify these ways to write complete codes for your requirement.

Those are general suggestions for your problem.

Hope these help