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
7
votes
0 answers

How do I programmatically get the previous version of an item in a TFS changeset?

Using the TFS APIs it is trivial to loop through changes in a changeset and then get the files using the ServerItem and ChangesetId. But suppose I want to diff the modified files, how can I get the VersionSpec for the previous versions? The trick of…
Bjorn Reppen
  • 22,007
  • 9
  • 64
  • 88
7
votes
4 answers

VS30063: You are not authorized to access https://dev.azure.com

I am trying to connect Azure DevOps using below code in asp.net core(2.1) mvc app Uri orgUrl = new Uri("https://dev.azure.com/xxxxx/"); String personalAccessToken = "xxxxx"; VssConnection connection = new VssConnection(orgUrl, new…
nakul89
  • 117
  • 1
  • 1
  • 7
7
votes
2 answers

Get the history "text" of a past work item edit

Say I make a work item in TFS. Then I make a change and update the text in the History tab (then save). Using the TFS API, how can I get that text? I would have thought it would have been in the History string for last item in the Revisions…
Vaccano
  • 78,325
  • 149
  • 468
  • 850
7
votes
3 answers

How to list all the files that are in TFS GIT repo using REST API

All, I am trying to get the list of all the files that are in a particular repo in TFS GIT using REST API. I found the below one but it only display the contents of the specific file name mentioned after "scopePath=/buld.xml", it only display the…
7
votes
2 answers

Passthrough (impersonation) authentication with ASP.NET and TFS api

I'm trying to enable passthrough or impersonation authentication inside an ASP.NET website that uses the TFS2010 API. I've got this working correctly with Cassini, however with IIS 7.5 (Windows 7) something is going wrong. I found this blog post on…
Chris S
  • 64,770
  • 52
  • 221
  • 239
7
votes
1 answer

TFS API - WIQL - Query only returns id and url

I am trying to execute a WIQL query on TFS server (following this example) and get work items with the tittle and other fields. Even though I define the columns I want on the output, the json returned only with id and url. Query Select…
rbianchi
  • 93
  • 1
  • 8
7
votes
4 answers

TFS WorkItemStore throws COMException in ASP.NET MVC app when using Authentication

I'm completely stumped by this and endless google/stackoverflow searches haven't helped. I'm using the 2012 Visual Studio SDK to connect to TFS 2012 and query the work item store. The code below works perfectly fine in both a console application and…
Nick Spreitzer
  • 10,242
  • 4
  • 35
  • 58
7
votes
2 answers

How to use LIMIT keyword as using in ms sql by WIQL to query TFS workItem

I'm working on TFS API, I don't know that TFS API have any things like LIMIT keyword or no.I need it for paging. Thanks
knowwebapp.com
  • 95
  • 4
  • 16
7
votes
2 answers

Programatically forcing field values for a TFS WorkItem

I am writing a utility to read all the defects out of a legacy bug tracking system, and import them into TFS (2008/2010). I am using the TFS API to create new WorkItems, set their fields, and then save them. However I am unable to modify the…
Mark Heath
  • 48,273
  • 29
  • 137
  • 194
6
votes
1 answer

TFS API - Updating a work item field

Is it possible to update a field of a work item using the TFS API ? Something along this line: WorkItemStore.GetWorkItem(Convert.ToInt32(current.WorkItemId)).State = rcbState.SelectedValue;
Jean-François Beaulieu
  • 4,305
  • 22
  • 74
  • 107
6
votes
1 answer

Programmatically access to TFS 2010 from outside the domain

I'm trying to access my TFS server programmatically from outside the domain where the server is installed. A basic test program would look like this : class Program { static void Main(string[] args) { Uri tfsUri = new…
Matthieu
  • 4,605
  • 4
  • 40
  • 60
6
votes
4 answers

How to map a TFS item url to something viewable

We are programmatically generating deployment emails, based on the history of changesets and associated workitems since the last deployed build. They look a bit like the build summary info inside Visual Studio (but with many builds combined). There…
iCollect.it Ltd
  • 92,391
  • 25
  • 181
  • 202
6
votes
2 answers

How to update a custom TFS field programmatically

We have a custom build process (not using MS Build) and during that process I am adding a "fake" build to the global builds list. The reason I am doing that is so that you can select the build for a given work item (found in build). We have a custom…
Nick
  • 65
  • 1
  • 4
6
votes
1 answer

TFS 2012 API Set TeamSettings Programmatically

Is it possible to set the TeamSettings Programmatically? var teamConfig = _tfs.GetService(); var css = _tfs.GetService(); var configs =…
Tarun Arora
  • 4,692
  • 4
  • 30
  • 40
6
votes
1 answer

API to update users image - Identity Extended Properties not saving

I'm trying to write a small script to set all users images to their AD image, I did some jumping around in ILSpy and found out what to set using the TFS Server API, however the code needs to be a bit different because I'm using the client API…
Betty
  • 9,109
  • 2
  • 34
  • 48
1 2
3
37 38