Questions tagged [tfs-sdk]

This tag is used to identify questions about the use of the Azure DevOps / TFS API, in any supported language, and any tools that support or build upon it. There are different APIs available. The REST API is the newer API. The older set of APIs consists of the Client Object Model, the Server Object Model and the Build Process Object Model. For .NET there are the .NET client libraries implementing clients for all these APIs.

This tag is used to identify questions about the use of the Azure DevOps / TFS API, in any supported language, and any tools that support or build upon it.

There are different APIs available. The REST API (https://learn.microsoft.com/en-us/rest/api/azure/devops) is the newer API. The older set of APIs consists of the Client Object Model, the Server Object Model and the Build Process Object Model (https://learn.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-2013/bb130146%28v%3dvs.120%29).

For .NET there are the .NET client libraries implementing clients for all these APIs (see https://learn.microsoft.com/en-us/azure/devops/integrate/concepts/dotnet-client-libraries).

569 questions
38
votes
2 answers

TFS API - How to fetch work item(s) from specific Team Project

I am trying to query a single team project in the main TfsTeamProjectCollection which contains 194 Team Projects in total. I know exactly how to get a WorkItem by Id from a WorkItemStore. The thing is, that by doing this, the API searches in ALL of…
Jean-François Beaulieu
  • 4,305
  • 22
  • 74
  • 107
31
votes
8 answers

TFS API: GetLocalWorkspaceInfo always returns null

On one of my machines, I get a return value of null from any GetLocalWorkspaceInfo call. I have isolated to problem to where it even fails for this simple program: namespace WorkstationTest { using…
Nick Freeman
  • 1,411
  • 1
  • 12
  • 25
19
votes
2 answers

How to programmatically get information about branches in TFS?

I need to programmatically find out information about branches in TFS. For instance the main thing i am interested is given root folder $/MyProject/Project1 I neeed to find out what other folders have been branched from it. I am just after the right…
Captain Comic
  • 15,744
  • 43
  • 110
  • 148
18
votes
2 answers

TFS 2010 API Resources

Does anyone have any good resources for working with the TFS 2010 API? I specifically looking at how to create, read, update and delete work items.
Chris Nicol
  • 10,256
  • 7
  • 39
  • 49
16
votes
2 answers

How to create a test run and result using the Team Foundation Server API?

I have found several samples about retrieving test results using the TFS API, but no documentation on creating results programmatically. My aim is to create a lightweight alternative to using Microsoft Test Manager for running manual tests. Does…
Aidan Ryan
  • 11,389
  • 13
  • 54
  • 86
15
votes
5 answers

How do you get the latest version of source code using the Team Foundation Server SDK?

I'm attempting to pull the latest version of source code out of TFS programmatically using the SDK, and what I've done somehow does not work: string workspaceName = "MyWorkspace"; string projectPath = "/TestApp"; string workingDirectory =…
John Rasch
  • 62,489
  • 19
  • 106
  • 139
14
votes
3 answers

How to Associate an work item as "Associate" or "Resolve" in Visual Studio TFS API (VS2015)?

I have forked a project with the code below: var pc = ParentSection.GetService(); var model = pc.GetType().GetField("m_workItemsSection", BindingFlags.NonPublic | BindingFlags.Instance); var t = model.FieldType; var mm =…
14
votes
2 answers

Is out there any REST API for TFS 2013 On-Premises installation?

We use company Team Foundation Server 2013 for source code and task management. Is there a way how can I manipulate work items within backlog over REST API? Our project is accessible via web url:…
mimo
  • 6,221
  • 7
  • 42
  • 50
13
votes
2 answers

Where can I find Microsoft.TeamFoundation.VersionControl.Client.dll in Visual Studio 2015 installation?

I followed instructions in article about supporting multiple versions of Visual Studio in developing checkin policies. Now, where can I find : Microsoft.TeamFoundation.VersionControl.Client.dll For Team Foundation Server 2015 (version 14) under my…
Lukáš Lánský
  • 4,641
  • 3
  • 32
  • 48
13
votes
4 answers

TFS 2015 SDK Missing Microsoft.WITDataStore64.dll

I am attempting to switch to the TFS 2015 SDK dlls (Version 14) for a few reasons. First, they are in nuget and second, the 2013 SDK dlls (Version 12) require the 32-bit flag flipped in IIS. I pulled down nutget package and the namespaces all line…
Sam Sussman
  • 1,005
  • 8
  • 27
11
votes
2 answers

Programmatically get a diff between two versions of a file in TFS

I'm trying to write a code which, given a path to an item in the TFS repository and two revisions, would compute a difference between the contents file had at these two moments. For now the code might look like this: using (var projectCollection =…
kamilk
  • 3,829
  • 1
  • 27
  • 40
11
votes
2 answers

Retrieving work items and their linked work items in a single query using the TFS APIs

Does anyone know if it is possible to retrieve a list of work items and their linked work items in one trip from TFS using their TFS API web services? At the moment, we are having to make a second call for each of the work items made during the…
Prabu
  • 4,097
  • 5
  • 45
  • 66
11
votes
4 answers

How to get specific version of folder from tfs without creating a workspace?

I would like to get the source code of a project at specific time (changeset). So I need do download whole folder. I would like to do it for different times and handling a different workspace is not very convenient. I know about TFS Get Specific…
IvanH
  • 5,039
  • 14
  • 60
  • 81
10
votes
3 answers

How to Find TFS Changesets Not Linked to Work Items

Is there a way, either via a query or programmatically, to identify all TFS Changesets that are NOT linked to a Work Item?
Ed Chaparro
  • 313
  • 4
  • 13
10
votes
1 answer

Check if the file is already in source control

I am working with TFS programmatically using classes from Microsoft.TeamFoundation.VersionControl.Client namespace. My goal is to check-in files from the local folder into source control. Some files may already exist in SC and should be Edited, some…
Dyppl
  • 12,161
  • 9
  • 47
  • 68
1
2 3
37 38