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

How can I add an attachment via the SDK to a work item without using a physical file?

I'm trying to create a new work item for TFS 2010 via the client SDK. In the SDK you can do something like this: WorkItem item = ...; item.Attachments.Add(new Attachment("c:\\path\\on\\tfs\\server\\shot.png", "Screen shot")); item.Save(); But this…
Bittercoder
  • 11,753
  • 10
  • 58
  • 76
3
votes
2 answers

Backup workitems on VS Team Services

Is it possible to backup/export/download all work items in some way? I had a look at the REST API but it seems you can't execute f.e. a query through this API...
Daniel Bişar
  • 2,663
  • 7
  • 32
  • 54
3
votes
0 answers

TFS (2013.4) API - DeniedOrNotExistException only on new Areas

I have been using the TFS API (2013.4) successfully to pull data from our in-house Project Support system, and periodically update TFS. There is a minor bug that is making me crazy; I could just ignore it, I suppose... it's not breaking the…
Riegardt Steyn
  • 5,431
  • 2
  • 34
  • 49
3
votes
2 answers

How to get List of projects from TFS?

How do I get list of projects from TFS server using webservice? Is documentation available for the TFS Webservices?
Prashant Cholachagudda
  • 13,012
  • 23
  • 97
  • 162
3
votes
2 answers

Block Check-In on Policy Failure

I've created the check-in policy from this MSDN article as an example (code is just copy / pasted). This works fine, it appears when I try and do a check-in, however it appears as an warning. So I can ignore it by just pressing Check In again. How…
MattR
  • 641
  • 3
  • 17
  • 38
3
votes
1 answer

TFS 2012 API: How do I get all history for a file including renames and merges?

When I view the history of a file in Visual Studio, I see this: I try to retrieve these changes through the API: var queryParams = new QueryHistoryParameters("$/Project/folder/folder/file.cs", RecursionType.None) { ItemVersion =…
CTarczon
  • 898
  • 9
  • 19
3
votes
4 answers

Where can I get TFS SDK?

I use VS2013. I'm finding Microsoft.TeamFoundation.Git.Client.dll and The GitHttpClient resides in Microsoft.TeamFoundation.SourceControl.WebApi.dll . I can not find them from GAC. I think that they may be in TFS SDK. But I can only find "Microsoft…
user2454489
  • 43
  • 1
  • 6
3
votes
1 answer

TF30063: You are not authorized to access https://test.visualstudio.com/DefaultCollection

I am trying to connect to TFS and authenticate user using below code. But I am getting the error: TF30063: You are not authorized to access https://test.visualstudio.com/DefaultCollection. var netCred = new NetworkCredential("test@live.in",…
alok_dida
  • 1,723
  • 2
  • 17
  • 36
3
votes
1 answer

Check-in code into TFS Server by using TFS API

I'm writing c# code to check-in code to TFS server: Workspace WS = VersionControl.GetWorkspace(TeamProject); WS.Map(TFSMapServerPath,LocalWorkingPath); int NumberOfChange =…
Hoang Nguyen
  • 1,348
  • 1
  • 10
  • 17
3
votes
1 answer

InteropServices.COMException in Microsoft.TeamFoundation.WorkItemTracking.Client

I'm trying to submit a workItem to TFS "ONLINE" through a WEB API. It works fine in my local machine but when i upload it to the shared hosting server it's not working. An error has occurred. Error HRESULT E_FAIL has been returned from a call to a…
chamara
  • 12,649
  • 32
  • 134
  • 210
3
votes
0 answers

Programmatically Tracking Changesets in TFS 2012 API/SDK

I am using Visual Studio 2012 and programmatically the TFS 2012 API/SDK We have a very simple branching strategy of $DEVELOPMENT -> $TEST -> $LIVE In simple terms, I am trying to build an application that will allow us to view which branch(es) (if…
Kyle
  • 951
  • 3
  • 14
  • 31
3
votes
2 answers

How to get the History of the sourcecontrol in TFS API?

I'm new using the TFS API, I'm writting an app who delete my team projects, but before I delete I want to know the last time was merged I mean the info that appear in Source Control Explorer > "Sample Project" > view history, and put into a…
hugoxd
  • 33
  • 1
  • 4
3
votes
2 answers

Authenticating to hosted TFS: TF30063: You are not authorized to access .visualstudio.com

I'm trying to connect to TFS on visualstudio.com through c# and am getting auth errors TF30063: You are not authorized to access [subdomain].visualstudio.com. Here is how I'm trying to enter the username and the password, which are 100% for sure…
Kyle
  • 32,731
  • 39
  • 134
  • 184
3
votes
1 answer

How to add custom TFS CheckinNoteDefinitions?

Using TFS 2012 client C# API, I can add CheckinNotes to each commit; CheckinNotes need a suitable CheckinNoteFieldDefinition for each CheckinNoteFieldValue, or the checkin will be rejected and an exception is thrown. How can I add additional…
Wilbert
  • 7,251
  • 6
  • 51
  • 91
3
votes
2 answers

How to include native library (JNI) in play 2.1 RC2?

I am using Play Framework 2.1 RC2 to build an application that utilizes TFS Java SDK. TFS APIs require a set of native dlls (e.g. native_auth.dll) to be included. How do I make the native libraries available when the application is running? Where…
Slick
  • 860
  • 3
  • 12
  • 19