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
5
votes
1 answer

Show Test result Form test suites using TFS api

I am working with a school project where I am going to analyse a companies defect database. They are using Microsoft Foundation Server (TFS). I am all new to TFS and the TFS api. I have some problem in getting the right data from TFS using the TFS…
user1418385
  • 73
  • 1
  • 6
5
votes
1 answer

Could not load type 'Microsoft.TeamFoundation.Client.BasicAuthCredential' from assembly 'Microsoft.TeamFoundation.Client

I have an MVC app that pulls data from hosted TFS, and when I deploy it I get this error Could not load type 'Microsoft.TeamFoundation.Client.BasicAuthCredential' from assembly 'Microsoft.TeamFoundation.Client, Version=11.0.0.0, Culture=neutral,…
Kyle
  • 32,731
  • 39
  • 134
  • 184
5
votes
1 answer

Get members of TFS group

I created a TFS group for our company programmers and I am trying to get list of programmers on that group. This here is so far I tried. ICommonStructureService iss =…
Dilshod
  • 3,189
  • 3
  • 36
  • 67
5
votes
1 answer

Find the tfs path of merged branch

Using TFS, I have trunk $/project/trunk and a branch $/project/dev/feature/new_one. I have merged my branch back to trunk as follows: C33($/project/trunk) | \ | \ | C32($/project/dev/feature/new_one) | | | | | | ... I use the TFS…
Philippe
  • 28,207
  • 6
  • 54
  • 78
5
votes
2 answers

Connect to Visual Studio Team Services from WebService

How can i provide credentials to TfsTeamProjectCollectionFactory.GetTeamProjectCollection? I am trying to develop my own WCF Service from witch I will make the request to TFS I need this WCF service because I would like to manage my TFS files from…
csharpwinphonexaml
  • 3,659
  • 10
  • 32
  • 63
5
votes
3 answers

How to check whether a local file is the latest version in tfs?

I want to be able to interrogate TfsTeamProjectCollection and determine if there is a newer version of a file on the server. I would like to be able to do this without actually fetching the file. Is this possible somewhere? I've done some…
Lee
  • 126
  • 8
5
votes
3 answers

TFS 11 2012 API Questions : query capacity and days off

I need to get several things done with the TFS API. Among those, I have to read the Resource planning information for the sprints of each Project to display in a WPF UI. Tagging along this guide, I now have the following method: private…
Sebastian Edelmeier
  • 4,095
  • 3
  • 39
  • 60
5
votes
2 answers

TFS API TestManagementService always returns null

I'm trying to get test plans by using TFS API. TfsTeamProjectCollection tfs = TfsTeamProjectCollectionFactory.GetTeamProjectCollection(new Uri("http://xxxxxxx:8080/tfs/DefaultCollection")); var service =…
cerezza
  • 251
  • 3
  • 14
5
votes
1 answer

How do I track a TFS changeset across multiple branches programmatically?

I have a TFS change set ID and it's been merged across several branches. I'd like to be able to find all the associated change set ids. Is there a way to use VersionControlServer.TrackMerges to find this information or is there a different API call…
Mykroft
  • 13,077
  • 13
  • 44
  • 72
5
votes
2 answers

Connecting to TFSPreview Programmatically

I'm attempting to connect to TFS Preview from a C# application. At the moment, I'm stuck trying to authenticate. I've added a reference to the TFS 2010 DLLs (I believe that these will enable me to connect, please correct me if I am wrong!) and my…
Jeff Foster
  • 43,770
  • 11
  • 86
  • 103
4
votes
2 answers

TFS-SDK: Merge doesn't work

As part of a bigger implementation, I'm trying to implement a merge operation of my source control branches/folders using TFS-SDK. I'm working against a TFS2010 installation.What I have is this: using System; using…
pantelif
  • 8,524
  • 2
  • 33
  • 48
4
votes
2 answers

TFS API - How to obtain the parent of a work item

My ultimate goal is to get the parent of one work item at a time recursively, until there are no more parents in the hierarchy. At the moment, there is nothing recursive yet, I am still at the point of optimizing the way I obtain the parent work…
Jean-François Beaulieu
  • 4,305
  • 22
  • 74
  • 107
4
votes
2 answers

TFS 2010 API: Get old name/location of renamed/moved item

I'm writing an application that pulls changesets from TFS and exports a csv file that describes the latest changes for use in a script to push those changes into ClearCase. The "latest" doesn't necessarily mean the latest, however. If a file was…
4
votes
1 answer

Is it possible to access the TFS API using C++ (Native)

Is there any way of accessing the TFS API using Native C++? I can access it using C# easily enough but I was wondering if anyone has tried accessing it via native C++. My other option is to use C++/CLI - has anyone had any luck with that at…
fubnuts
  • 63
  • 3
4
votes
1 answer

Get Latest using TFS API

I am trying to use the TFS API to retrieve the latest code from the server within a workspace. I found this question: How do you get the latest version of source code using the Team Foundation Server SDK? Which is essentially what I want to do;…
Paul Michaels
  • 16,185
  • 43
  • 146
  • 269