TFS API Part 20: Bye TeamFoundationServer and Welcome TfsTeamProjectCollection

11/02/2010

TFS API Part 20: Bye TeamFoundationServer and Welcome TfsTeamProjectCollection

In my last post I talked about Upgrade Team System Beta 2 To RC – Smooth and the amazing performance improvement in Visual Studio.

Trying to compile a old TFS utility with Visual Studio RC, I found out the TeamFoundationServer class is obsolete, The replacement is TfsTeamProjectCollection or TfsConfigurationServer classes to talk to a 2010 Team Foundation Server.
In order to talk to a 2005 or 2008 Team Foundation Server use the TfsTeamProjectCollection class.

public TfsTeamProjectCollection(RegisteredProjectCollection projectCollection);

public TfsTeamProjectCollection(Uri uri);

public TfsTeamProjectCollection(RegisteredProjectCollection projectCollection, IdentityDescriptor identityToImpersonate);

public TfsTeamProjectCollection(Uri uri, ICredentials credentials);

public TfsTeamProjectCollection(Uri uri, ICredentialsProvider credentialsProvider);

public TfsTeamProjectCollection(Uri uri, IdentityDescriptor identityToImpersonate);

public TfsTeamProjectCollection(RegisteredProjectCollection projectCollection, ICredentials credentials, ICredentialsProvider credentialsProvider);

public TfsTeamProjectCollection(Uri uri, ICredentials credentials, ICredentialsProvider credentialsProvider);

public TfsTeamProjectCollection(RegisteredProjectCollection projectCollection, ICredentials credentials, ICredentialsProvider credentialsProvider, IdentityDescriptor identityToImpersonate);

public TfsTeamProjectCollection(Uri uri, ICredentials credentials, ICredentialsProvider credentialsProvider, IdentityDescriptor identityToImpersonate);

Here is couple of older post on how to connect TFS using API

TFS API Part 1: Domain Picker

TFS API Part 2: Domain Picker Using Registered Servers (Cache)

TFS API Part 13: More About Connecting TFS (Custom Credentials, Prompt)
 
Enjoy
Add comment
facebook linkedin twitter email

Leave a Reply

2 comments

  1. CJ02/12/2010 ב 21:34

    Makes you look like a minor god creating a universe.

  2. India08/11/2011 ב 17:45

    Well I guess I don’t have to spend the wekeend figuring this one out!