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

How to get query names that references the particular iteration path

With selected project name, I had loaded iteration paths. Now I need to get the query names that references the selected iteration path. Code to load iteration paths passing project name: private void LoadIterationPaths(string projectName) …
codeseeker
  • 149
  • 11
0
votes
1 answer

Read Process Template Version and TypeID in an ISubscriber plugin for TFS

I'm setting up a TFS ISubscriber plugin and I want to be able to decide whether to trigger based on the installed Process Template Name (DONE), TypeID and Version. The code to read the name is relatively straightforward: var ics =…
jessehouwing
  • 106,458
  • 22
  • 256
  • 341
0
votes
1 answer

Why does the CheckinEvent SOAP message from the TFS event service only contain the first 25 files in the changeset?

I am using bissubscribe.exe to subscribe to events published by our Team Foundation Server (2010). When receiving the SOAP message from TFS for the CheckinEvent event type, it only includes the first 25 versioned item changes even though I know…
Sir Crispalot
  • 4,792
  • 1
  • 39
  • 64
0
votes
1 answer

How do I create a TFS 2013 Git repository via Web Api?

I'm trying to automate creating git repositories for my team. I need to use the Web Api, NOT the .NET API. The call I'm trying to use is this one which responds, but returns the following error body within a HTTP/1.1 400 Bad…
TheSoftwareJedi
  • 34,421
  • 21
  • 109
  • 151
0
votes
0 answers

TFS API Workitemstore runtime error after deployment of Web App

I am developing a Web Application trying to connect to TFS using TFS API in C#. The following line of code is generating a runtime error when deployed onto ISS. It works fine on my local box : WorkItemStore workItemStore =…
CodeNinja
  • 3,188
  • 19
  • 69
  • 112
0
votes
1 answer

How to get all iteration paths for the selected project in TFS programatically?

Code for getting TFS projects in combobox: var tfs = TfsTeamProjectCollectionFactory.GetTeamProjectCollection(_tfs.Uri); var vsStore = tfs.GetService(); var projects = vsStore.GetItems("$/" +…
Earth
  • 3,477
  • 6
  • 37
  • 78
0
votes
1 answer

How to set value in "AssignedTo" field in TFS programatically while creating a UserStory?

Code: // To create a User Story var collectionUri = new Uri(txtTFS.Text); var tpc = new TfsTeamProjectCollection(collectionUri); var workItemStore = tpc.GetService(); var teamProject =…
Earth
  • 3,477
  • 6
  • 37
  • 78
0
votes
1 answer

Checkin and Checkout file from TFS programmatically using c#

I have a requirement to checkout and checkin file from TFS programmatically using c#. The code which I am using is as shown below. var tfs = new TfsTeamProjectCollection(new Uri("http://MyTFSServer/")); var versionControlServer =…
SVM
  • 15
  • 1
  • 5
0
votes
1 answer

Credential popup accessing TFS from custom App on Windows Server

I've a .NET application, that connects to a TFS server and plays a little bit with the work items. The application gets all its parameters like server, user, password etc. via command line parameters. This works well on all tested client windows OS…
Konrad
  • 4,329
  • 10
  • 54
  • 88
0
votes
1 answer

Get all files for a TFS changeset (and not just deltas) programatically

Currently I have only figured out how I can use TfsTeamProjectCollection and VersionControlServer to get all files related to a specific changeset (i.e. added/changed/deleted files etc). What I can't figure out how to get all files like the "Get…
jgauffin
  • 99,844
  • 45
  • 235
  • 372
0
votes
1 answer

install msi on TFS Build Server

I have used TFS API to develop a custom Web Application. When I try to build the Application on the server using TFS Build, I see the build failing since there are no assemblies installed on the Build Server. I have searched online but couldnt find…
CodeNinja
  • 3,188
  • 19
  • 69
  • 112
0
votes
1 answer

Cannot programatically display built in Merge tool to resolve a merge conflict

I use Unit Testing project VS 2012 and too an Console Application project VS 2012 using TeamFoundationClient 11.0 and TFS 2008. I use MergeContent(Conflict, true) but not shown UI (dialog modal for merge). I have seen this reference: Cannot…
Kiquenet
  • 14,494
  • 35
  • 148
  • 243
0
votes
1 answer

Using TFS API to fetch All Priority Triage Severity values

I am building a Web Application using TFS API. I would like to fetch the All the range of "Priority" values from the TFS API and populate my asp.net dropdownlist. Similarly. I would like to fetch All the for `"Severity" and "Triage" and populate…
CodeNinja
  • 3,188
  • 19
  • 69
  • 112
0
votes
1 answer

Accessing TFS Work Item Properties "Blocked" & "Root Cause" using TFS API

Can anyone tell me how I can access the properties "Blocked" & "Root cause" of a Work Item? I tried the following but it doesn't seem to be right: // Code to connect to TFS WorkItem workItem = workItemStore.GetWorkItem(1234); string blocked =…
CodeNinja
  • 3,188
  • 19
  • 69
  • 112
0
votes
1 answer

using file upload control to upload a file and pass the file to an object/web service

I would like to attach a file on a web page and save it in TFS. I am using the asp.net fileupload control to save the file . Can anyone please tell me how I can insert the accessed file from fileupload control into tfs…
CodeNinja
  • 3,188
  • 19
  • 69
  • 112