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 do I authenticate using the TFS SDK using a web application?

I'm trying to allow users to do various tasks using the TFS SDK. I have created a simple .NET web application to do this, which runs perfectly when I'm running locally. I can connect to the TFS host on our domain as myself using my AD…
Brian Chambers
  • 463
  • 5
  • 14
0
votes
0 answers

Microsoft TFS SDK gradle

I would like to include the Microsoft TFS SDK jar into gradle build I tried multiple example based on different blogs In my project dependency I have tried below dependency: compile "com.microsoft.tfs:sdk:14.0.2" compile…
hanmayya
  • 145
  • 10
0
votes
1 answer

Custom TFS server plugin throws exception TF30063

I've been writing a custom TFS 2013 server plugin for my company that automatically creates tasks whenever a new bug or product backlog item is created. While debugging I can see it detecting the new work item, but when it tries connect to the…
0
votes
1 answer

Unable to initialize a TFS store

I am trying to create a task / work item in Visual Studio Team Services (previously Visual Studio Online). My code fails because "tfsStore" returns null value causing the exception to be thrown. NetworkCredential myNetCredentials = new…
JayHawk
  • 275
  • 1
  • 5
  • 15
0
votes
1 answer

TFS API :Method not found: 'Boolean Microsoft.TeamFoundation.WorkItemTracking.Proxy.IWorkItemRowSets.TryGetRowSet

I have using TFS api method to connect Team Foundation Server 2012 in my development environment .My api call working fine to connect Team Foundation server 2012 and 2010.but now i want to connect Team Foundation Server 2013 and above version .…
somu
  • 29
  • 5
0
votes
3 answers

How to get the list of test run attachments via TFS Client Libaries for REST API?

There is a method TestManagementHttpClient.GetTestRunAttachmentContentAsync() and it requires attachment id among other parameters but I couldn't find a method to get the list of all files attached to the test run so I'm wondering if there is a…
Dmytro I.
  • 314
  • 4
  • 17
0
votes
1 answer

TFS API - Object not set to reference of an object Error

I'm using the TFS api to pull data on some projects into a localized database. Recently this stopped working. and gave us this error. Object Not Set to Reference of an Object AND Null reference exception at the Domain level (this fails the moment…
Randy B.
  • 453
  • 4
  • 20
0
votes
1 answer

Where can I find Microsoft.TeamFoundation.VersionControl.Server in VS2012

I can't find it anywhere nor can I find any article on how to install it. https://msdn.microsoft.com/en-us/library/microsoft.teamfoundation.versioncontrol.server%28v=vs.110%29.aspx
mellis481
  • 4,332
  • 12
  • 71
  • 118
0
votes
1 answer

Is there any way to run a TFS query using a `QueryItem`?

I'm retrieving the queries using teamProject.QueryHierarchy. It is working, I can see its details of this query like Name, ID, Path, but no WIQL string, so I can't use that QueryItem to execute a query on TFS. Is there any way to run a query using…
user5630103
0
votes
2 answers

How to permanently save a build variable as a build step?

I have the following variables defined: Now once a build is complete (the last step in the build process), I want to update the VersionRevision variable, basically increment it. So I'm looking for an API I can call from C# and create a console…
JL.
  • 78,954
  • 126
  • 311
  • 459
0
votes
1 answer

Adding a ComboBox control with multi selection in TFS?

I'm trying to add a combobox with MultiSelect in my TFS and this tutorial Codeplex is guiding me. After installing the Download file I have obtained the first error: Could not find file 'C:\ProgramData\Microsoft\Team Foundation\Work Item Tracking…
cura
  • 1,035
  • 1
  • 17
  • 33
0
votes
2 answers

Extract, zip and publish TFS source-controlled items to FTP server

I want to publish nightly builds + source code of a specific project on a tfs 2010 server (local network, inside the firewall) to a (local network, in the dmz) ftp server. Build Get latest version Zip build and code Copy to ftp server Copying…
stombeur
  • 2,704
  • 22
  • 45
0
votes
1 answer

C# TFS API add test cases to Requirement-based suite

I am trying create test cases and add them to existing Requirement-based suite. below is the code i am trying with but i am able to create test cases but not able to add them to Requirement-based suite namespace ConsoleApplication1 { class…
testerBDD
  • 255
  • 3
  • 18
0
votes
2 answers

Team foundation server getting users of a project using Java SDK

i'm trying to get all the users that belong to a project through the SDK for Java version 11.0.0 but i'm stuck. With that code i retrieve the collections and the projects: TeamFoundationServerEntity…
0
votes
1 answer

TFS API, How can i get "Assigned To" users for certain group ("In Group")

At Present i'm able to get all the users in TFS for AssignedTo Field by fallowing code: var tfs = TeamFoundationServerFactory.GetServer("http://vstspioneer:8080/tfs/VSTSDF"); var workItemStore =…