3

So after countless hours crawling the internet I am unable to find any form of proper API for TFS 2010 for C# (I have not installed any SPs yet) I am unable to find any proper results

I have found the SDK on the Microsoft site but it is for Java for some reason.. Can anyone help me and provide me with some proper documentation, I have found some relating to VS2005 but this all seems to have been removed from the framework as you can no longer import Microsoft.Core

Links to items I have looked at:

Edward Thomson
  • 74,857
  • 14
  • 158
  • 187
Hello World
  • 1,379
  • 4
  • 20
  • 41
  • Could you provide detail on what you want to do? API in the context of a service is a bit vague. For instance are you looking to customize the server or client, or automate certain activities? – Guvante Nov 21 '12 at 15:50
  • I am in the process of writing a console application that will have the ability to grab a projects name based on some data within our CSProj files, search our TFS server for a matching project, then record changesets which have been added since the date of the last release – Hello World Nov 21 '12 at 15:51

2 Answers2

4

If you're looking for a C# API (likely, based on the question tags), there is the Microsoft.TeamFoundation namespace. I have used it before.

You will need to include the following assemblies as references in your project:

  • Microsoft.TeamFoundation.Client
  • Microsoft.TeamFoundation.Common

And one or more of the following based on your specific needs:

  • Microsoft.TeamFoundation.VersionControl.Client
  • Microsoft.TeamFoundation.WorkItemTracking.Client
  • Microsoft.TeamFoundation.Build.Client
  • Microsoft.TeamFoundation.TestManagement.Client
Philip Hanson
  • 1,847
  • 2
  • 15
  • 24
2

A good starting point:

  1. http://msdn.microsoft.com/en-us/library/ms252473.aspx#ObMod
  2. http://msdn.microsoft.com/en-us/library/ff732845.aspx

All are in .NET

I did not even know there was a Java API...

Guvante
  • 18,775
  • 1
  • 33
  • 64
Mario The Spoon
  • 4,799
  • 1
  • 24
  • 36