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 not returning actual value

I'm using the TFS API to check the validity of existing work items with a C# app. I know that a certain WI (---) is invalid (as seen through the work item UI, several fields have missing or invalid values). However the below code that calls the…
0
votes
1 answer

How to create a Feedback Response in C#

I want to add a feedback mechanism in my software. It's a good idea to get the required information for a TFS Feedback Response from the user and then create a TFS work item for it. So my clear question would be: Question: How can I add a 'Feedback…
mehrandvd
  • 8,806
  • 12
  • 64
  • 111
0
votes
1 answer

custom control for TFS work item type

I will explain my question with an example. Lets consider TFS "Bug" work item type. In the bug work item type there is a "Developer" and "Tester" dropdown. Using the inbuilt rule types we can only assign "VALIDUSER" to each drop down. This displays…
stackoverflowuser
  • 22,212
  • 29
  • 67
  • 92
0
votes
1 answer

How Add tabs and pages on TFS Web Access 2013?

I'm using TFS 2013 with Team Web Access and I want to create custom tab on TWA. It is possible because Urban Turtle has some functionality (they've added custom tabs). How I add custom tab to TWA? Anyone can help me?
0
votes
2 answers

TFS API - How to get a Team's Adminstrator?

I'm trying to programmatically retrieve a Team's Administrator Users. For example in a setup like in the picture how can I get 'Billy' as being the Administrator of Team 'QC Manager'? I already have the code that gets all users in a Team via…
siliond
  • 83
  • 9
0
votes
3 answers

TFS api not validating the credentials

I have the following code on my windows form application: // Connect to server var tfs = new TeamFoundationServer(tfsServer, credentials); try { tfs.EnsureAuthenticated(); } catch…
Gerald
  • 1,033
  • 5
  • 20
  • 41
0
votes
1 answer

How to get the Column name for a TFS 2012 Product Backlog Item programatically

We are using TFS 2012 with a SCRUM Template. We have 9 custom columns in our Product backlog board in TFS 2012. How do I get the Column name for each Product Backlog Item using the TFS API libraries? eg. WorkItemCollection wic =…
Jafin
  • 4,153
  • 1
  • 40
  • 52
0
votes
4 answers

Domain model of Team Foundation Server

Did anybody see a domain model (information model) of Microsoft TFS (team foundation server)? Where it can be found? I need to understand ability to integrate it with other product.
0
votes
2 answers

Use VersionControlExt.Explorer outside Visual Studio

I'm developing a TFS tool to assist the developers in our company. This said tool needs to be able to "browse" the TFS server like in the Source Control Explorer. I believe that by using VersionControlExt.Explorer.SelectedItems, a UI will pop-up…
Ian
  • 5,625
  • 11
  • 57
  • 93
0
votes
2 answers

Deleting drop output of a deleted build

Is there any mechanism available (preferably through the TFS API) to delete the drop output of a deleted build? We have a number of deleted builds were the drop output still remains, as a result of the retention policy of the build definition in…
Pero P.
  • 25,813
  • 9
  • 61
  • 85
0
votes
2 answers

Finding the age of change sets in a merge

I'm trying to find the time it takes from checking in a change to a branch to that changeset getting merged up to a parent branch. I've been playing with the TFS API and have tried to use the GetBranchHistory and QueryMergesExtended methods but they…
Dunc
  • 7,688
  • 10
  • 31
  • 38
0
votes
1 answer

TFS API: Mapped worked space is always null

Question background: I'm trying to do the following process but currently cannot succesfully map the TFS code to the specified local folder: Create a temporary work space. Set the temporay workspace to be on the C drive in a folder called…
user1352057
  • 3,162
  • 9
  • 51
  • 117
0
votes
1 answer

Add users to Active Directory and roles programmatically to tfs project

How can I add users to Active Directory and roles programmatically to a fresh created tfs project? I'm working with VS2012, TFS 2010, SQL Server 2012. Thanks,
0
votes
1 answer

Get projects with TFS BasicAuthCredentials

I'm trying to get list of projects from TFS Online. I'm not getting any exception but the tpcNodes collection count is always 0, so it does not list any projects. public List GetProjects() { string _myUri =…
chamara
  • 12,649
  • 32
  • 134
  • 210
0
votes
2 answers

How Can a Class Can Implement Interface without implement one Of the Functions?

i have noticed a very strange behavior in one of the classes in the TFS API that look like breaking the definition of the language. I tried to imitate it but without success, I have tried to implement collection but not letting whom who use the…
Cfir TSabari
  • 372
  • 3
  • 13