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

Generate reports programmatically using the TFS API and SSRS

Is there a simple approach in generating reports, either in PDF, Excel, Word or TIFF formats using the TFS API and SSRS? I can generate the reports manually by selecting the parameters from the combo boxes using the SSRS dashboard for TFS but I…
Jean-François Beaulieu
  • 4,305
  • 22
  • 74
  • 107
6
votes
2 answers

TFS: Query for builds containing a specific changeset

I have a number of build definitions that get executed based upon a single branch in TFS (eg Main). I'd like to (somehow) query TFS to find all builds containing a specific changeset number that I supply, and return a list of string of the names of…
J. Polfer
  • 12,251
  • 10
  • 54
  • 83
5
votes
2 answers

TFS2010 - Track Merges

Given a changeset c and given that c contains merge operations, I would like to get a list of all changesets that have been merged and resulted in c. For example: Changeset 1 contains some edits for some files. Changeset 2 contains some edits for…
Christian
  • 4,345
  • 5
  • 42
  • 71
5
votes
1 answer

Set Effort estimates through TFS Work Item SDK

I want to create a new work item in TFS using the SDK, and I'd like to set the item's effort estimates. My code at the moment looks like this var coll = TfsTeamProjectCollectionFactory.GetTeamProjectCollection(new…
Ceilingfish
  • 5,397
  • 4
  • 44
  • 71
5
votes
2 answers

Show item history windows with TFS SDK

I'm writing an app that integrates with TFS via the official SDKs to automate and support various common actions. Although most of it is automation and the TFS API exposes pretty much everything I need, some of the actions need user intervention so…
madd0
  • 9,053
  • 3
  • 35
  • 62
5
votes
1 answer

How do I find how much space TFS is using

I'm tring to find out how much space TFS is using. Is there a simple check free space command on TFS? Also is there a way to poll TFS for the amount of hard drive space left and see when large changes or large amount of files have been added and…
RetroCoder
  • 2,597
  • 10
  • 52
  • 81
5
votes
2 answers

How do I programatically lookup code churn info for individual files within a changeset in TFS 2010?

I need to be able to programatically lookup code churn info (lines added, changed, deleted) for individual files within a changeset in TFS 2010. The program that I need to do this is in is a desktop client application. Anyone know how to do this?…
EVal
  • 93
  • 8
5
votes
2 answers

Programmatically add new iteration in TFS

I can manually add a new iteration to a team project in TFS by right clicking on the project and going to Team Project Settings > Areas and Iterations > Iterations tab. Is there an example out there of how to do this programmatically using their…
J Cooper
  • 16,891
  • 12
  • 65
  • 110
5
votes
2 answers

Azure Devops - Get release definitions by agent pool ID

I'm trying to find all the builds and releases that are configured to use a specific agent pool, using the .NET Client Libraries. Assuming agentPoolId, I can get all the build definitions like this: // _connection is of type VssConnection using (var…
Rui Jarimba
  • 11,166
  • 11
  • 56
  • 86
5
votes
3 answers

Attempting to retrieve files from TFS workspace stalls application

So I am attempting to retrieve the files from a workspace in TFS. Unfortunately, every attempt that I have made to do this results in a stalled application. As of right now, this is the code: public void GetWorkspaceFiles(string…
KallDrexx
  • 27,229
  • 33
  • 143
  • 254
5
votes
4 answers

listing all contents of a folder in tfs

Given a particular path of folder in tfs, I need to recursively find all files and folders within the folder for a given changeset. In other words, i need to get the transitive closure of a path in tfs for a given changeset. The problem I'm facing…
Sidd
  • 83
  • 1
  • 9
5
votes
3 answers

Get the current iteration path from TFS

I'm trying to get the current iteration path for the teams TFS project. The way I'm trying to do this is by using the blog from http://blog.johnsworkshop.net/tfs11-api-reading-the-team-configuration-iterations-and-areas/ . I start by getting the…
user2748943
  • 533
  • 2
  • 9
  • 20
5
votes
4 answers

TFS API - Get merged changesets

I have a program that reads the lastest build and gets all the changesets from it. It is then possible to determine if the changset that I have it actually a merge, and where it was from. Here's what I have: List changeSets =…
Paul Michaels
  • 16,185
  • 43
  • 146
  • 269
5
votes
1 answer

TFS API get work item data

i m stuck on simple problem with TFS API, when im getting work item, i cant get workitem Effort data, the idea is to get work item form the TFS by specific criteria, and then change Effort data and save it back to the TFS. Now i can get work item,…
Jhon Enamo Casas
  • 53
  • 1
  • 1
  • 3
5
votes
2 answers

Get all folders from TFS using TFS SDK

I am creating a TFS tool that will get "changeset information" from the TFS server. Now, I want to provide a "TFS Browser" so that the user can browse what "branch/folder" he wants to fetch information from. I am using a TreeView control and the…
Ian
  • 5,625
  • 11
  • 57
  • 93