Monday, June 16, 2008

In a previous post I told about the tool for subscribing to the override policy event.  With this tool, there's one problem.  If you don't remember your subscription ID anymore, you can't unsubscribe from this event.

So I've created a first version of my new tool "Managing TFS Subscriptions".  It's a little bit quick and dirty written tool, but it does it's job.  I'm planning to rewrite it better.  At for this moment there are two limitations :

  1. You can't edit an existing subscription
  2. When adding a new subscription and you need to add extra parameters, there's no build tool.  So you have to write you're own expression here.  There's an example filled in for the override policy.

How does this tool work?

When you start the tool, you will ask for the TFS server.  I used the same principle as the Team Explorer here, but without selecting a project. You can do this by using following code line

 1: DomainProjectPicker dpp = new DomainProjectPicker(DomainProjectPickerMode.None);
 2: if (dpp.ShowDialog() == DialogResult.OK)
 3: {
 4: //You're code gets here
 5: }

ManagingTFSSubscriptions1

After you're authorized for the server, you will see a list of all subscriptions you've have added.  You don't see the subscriptions that somebody else has made for you.  Now you can select a subscription and then unsubscribe from it.

ManagingTFSSubscriptions2

You can also add a new subscription.  I've used the screen from the override policy tool for this and made some changes to it :

  1. I've deleted the server info
  2. Add the lists of projects
  3. Add the list of events you can subscribe 
  4. Add the field for the extra parameters.

ManagingTFSSubscriptions3

You can download the source here and the binary here.

TFS
6/16/2008 3:55:11 PM (Romance Standard Time, UTC+01:00)  #     |