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

TFS API 2010: Track a file across all branches

Using the TFS API I am trying to approximate bugs/file. A bug (as I define it) originates from a file in a change set that has been associated with a work item that has type WorkItemType = 'Bug'. For example, in branch-a, branch-a/1.txt and…
Forrest Coward
  • 113
  • 1
  • 6
0
votes
3 answers

TFS how can I get test parameters for a test

I'm going over all test cases under a specific test plan, and for each test case I want to print the parameter name and values. foreach(var param in test.TestParameter) { } The problem is that item.Value is null. item.Name returns the parameter…
user963491
  • 151
  • 1
  • 8
0
votes
1 answer

How can I programmatically get a workitem "integration build" field value

I having currently implemented the isubscriber interface so to be able to detect when a workitem has changed. I notice that when a cast the event to a workitemchanged event that there is refernce to: corefields, and changedfields. However, I am…
0
votes
2 answers

Get .sln file from Team Foundation Server SDK

I'm writing a check-in policy for Team Foundation Server, and would like to know if there's any way to get the path to the project solution's .sln file with the TFS SDK. Seems like there should be a way, just haven't found it yet--any help would be…
DashRantic
  • 1,448
  • 4
  • 19
  • 32
0
votes
2 answers

TFS Project path

My requirement is to automatically deploy my project in a remote machine. Currently my project resides in the TFS server. In my project I have a folder named Database and I used to add the sql scripts to this folder and checked in the complete…
BonDaviD
  • 961
  • 3
  • 11
  • 27
0
votes
2 answers

Accessing TFS API from machines without Team Explorer

Can I use TFS API in my code and deploy the code in the machine where Visual Studio or Team Explorer doesn't exist? I found this, which says I shouldn't do that. Any help on this? Thanks!
Kiru
  • 3,489
  • 1
  • 25
  • 46
-1
votes
2 answers

Using TFS API in react app - Can I use TFS API in react app or can I load C# DLL's into react app?

I need to get the list of all the repositories and all the branches from TFS. I have a react app and I wonder if there is some way to use TFS API from it. Or maybe I should load C# DLL's in order to do that? Thanks :) I found…
-1
votes
1 answer

Want to fetch feature details based on Feature title for workitem type feature in Azure DevOps using C#

I am trying to develop a console application to fetch the workitem details for workitem type Feature in Azure DevOps. I want to fetch details like Feature id,state. the title of Feature will contain Demand number along with demand name, I will be…
BSS
  • 21
  • 1
  • 6
-1
votes
1 answer

Get attachments from Shared steps in TFS

How to download attachments in shared steps from TFS using C#. Here is some part of code I have written: foreach (WorkItem item in witCollection) //witCollection is collection of shared steps. { if(item.Attachments.Count > 0){ …
b_J
  • 115
  • 10
-1
votes
1 answer

Creating a test case in tfs 2015 by rest api version 2.2

I'm trying to create a new test case at the TFS throw Postman by sending a PUT request with an application/json but get "Message": "The requested resource does not support http method 'PUT'." I tried to use X-HTTP-Method-Override but i get the…
Gal I.
  • 201
  • 3
  • 12
-1
votes
2 answers

Tfs work item of type test case creation using c#

I am trying to create a work item of type test case in TFS using c# in visual studio. I am able to set the values of all fields except the field "steps". How to set the step field's value? I tried workitem.Fields["steps"].value = "value" but is not…
-1
votes
1 answer

Is it possible to get list of query names that references particular iteration path

Is it possible to get list of query names that is present in the particular iteration path in TFS SDK ? I am able to get all the query names of a project using the following code foreach (StoredQuery qi in detailsOfTheSelectedProject.StoredQueries) …
user3747256
  • 113
  • 1
  • 1
  • 13
-2
votes
1 answer

TFS REST API Get items that failed to build

Someone know the way to get projects that failed to build, through the TFS REST API?
-4
votes
2 answers

Object reference not set to an instance of an object.???

when i run to BranchHistoryTreeItem[][] TreeItem = vcs.GetBranchHistory(new ItemSpec[] { new ItemSpec(teamProject.ServerItem, RecursionType.Full) }, LatestVersionSpec.Latest); there are a issue "Object…
1 2 3
37
38