Search Wiki:
This is the official home for Team Foundation Server (TFS) online resources on Code Gallery. Here, you will find the samples for the Team Foundation Server SDK (samples are no longer included with the Visual Studio SDK), deep dive documentation, and links to shared source projects and other resources. This page is maintained by the TFS product team at Microsoft.

All TFS SDK related resources on Code Gallery are tagged with the “TfsSdk” tag. You may subscribe to the RSS feed to be notified of new TFS SDK resources on Code Gallery.


Available Now for RC

How to Create a Custom Workflow Activity for TFS Build 2010
How to Implement, package and deploy custom check-in policy for TFS 2010

Beta 2 Samples Pending Update for RC


Coming Soon



Note: after downloading the compiled HTML Help (.CHM) file, right click on it in Windows Explorer and select Properties, then click Unblock. If you don't you won't be able to read its contents.
Public Object Model

Code Snippets

Suggest a Snippet!

Collections and Projects

Enumerate Registered Servers
Connect to Project Collection


Query for Build Controllers and Agents
Queue a Build

Version Control

Query for Files

Work Item Tracking

Enumerate Stored Queries
Create Work Item Linked to Versioned Item
Last edited Mar 31 2010 at 5:53 PM  by JimLambTFS, version 25
EdBlankenship wrote  Jul 2 2010 at 11:11 AM  
Looks like the first iteration of MSDN documentation for the TFS 2010 SDK is available here:

Cheeso wrote  Nov 17 2010 at 4:20 PM  
This page says: "Here, you will find the samples for the Team Foundation Server SDK (samples are no longer included with the Visual Studio SDK)." My question is, Is there such a thing as the TFS SDK, is it downloadable, and if so, where can I get it? Is the TFS SDK part of the VS SDK?

This stuff is impenetrable, unless one already understands exactly how everything is packaged. I want to be able to build an app that creates a workitem in TFS. What do I need to download and install in order to make that possible?

This is maddening!

I just installed the VS SDK, and I get all sorts of "extending Visual Studio" DLLs, I suppose for extending the VS UI. But nothing that enables interacting with TFS, as far as I can tell.

gritgranite wrote  Nov 20 2010 at 12:27 AM  
I too am looking to download the TFS SDK to programmatically talk to TFS. any pointers?

mattkins99 wrote  Dec 9 2010 at 2:38 AM  
Where is the actual download link of the SDK? Am I blind?

phecht wrote  Jan 21 2011 at 4:38 PM  
It appears you the TFS SDK is built-in. Adding something like this: using Microsoft.TeamFoundation.Client; using Microsoft.TeamFoundation.VersionControl.Client; So, I would say there is no TFS 2010 SDK. You just need to figure out how to put this page to work:

mattkins99 wrote  Feb 2 2011 at 11:09 PM  
You need to install Team Explorer even if you installed VSTS 2010 Ultimate. Only then will the files be there... took me a lot of digging to figure that out because I thought I already had everything.

timebridge wrote  Apr 15 2011 at 10:10 PM  
Im having trouble using the IEventService from the Microsoft.TeamFoundation.Server namespace in Microsoft.TeamFondation.dll for 2010. According to the Object Explorer, the interface does not exist. There are a few TFS2010 pages with references to it. How should we be programmatically subscribing to events? I have TFS fully installed on my client, adn I have full access to the server. Ideas?

Page view tracker