Team Foundation Server 2010 API

I was wondering if anyone knew of a good site showing examples of using the TFS 2010 API.

I would like to develop a project that will allow the team to see which files / items have been checked by other team members. Just users of the system could see what the project developers are working on. Does anyone have experience on this issue that could advise you to start?

I will develop .NET (C # OR VB), and the application will run in a SQL Server 2008 database.

+5
source share
2 answers

As Alex mentions, Attrice's TFS Sidekicks has this functionality.

, TFS Power Tools " ", , ( ) .

, , , TFS SDK. , , , - :

TfsTeamProjectCollection projectCollection = new TfsTeamProjectCollection(new Uri("http://tfs.mycompany.com:8080/tfs/DefaultCollection"));
VersionControlServer vc = projectCollection.GetService<VersionControlServer>();

/* Get all pending changesets for all items (note, you can filter the items in the first arg.) */
PendingSet[] pendingSets = vc.GetPendingSets(null, RecursionType.Full);

foreach(PendingSet set in pendingSets)
{
    /* Get each item in the pending changeset */
    foreach(PendingChange pc in set.PendingChanges)
    {
        Console.WriteLine(pc.ServerItem + " is checked out by " + set.OwnerName);
    }
}

(: )

, , , .

+6

TFS Sidekicks Attrice . ,

TFS Sidekicks

+2

All Articles