tfs-sdk

Does TFS API require Visual Studio?

爷,独闯天下 提交于 2019-12-13 16:39:28
问题 I am trying to check in, check out, GetLatest, etc. with the TFS API using C#. For the development PC and an Admin user this works flawlessly. however, on a dedicated maschine without VS 2010 installed and the TFS user being a non-Admin this does nto work. I get the following error: * Access to the registry key 'HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0' is denied. 2012-10-08 14:58:30 [...] error : at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str) at

Where can I get TFS SDK?

大憨熊 提交于 2019-12-13 14:09:37
问题 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 Visual Studio Team Foundation Server 2012 Software Development Kit for Java" :http://www.microsoft.com/en-us/download/details.aspx?id=22616. Where can I get TFS SDK? 回答1: Regarding Microsoft.TeamFoundation.Git.Client.dll per MSDN : You can find the

TFS API: Cannot add testpoint after testrun is saved

半城伤御伤魂 提交于 2019-12-13 14:04:26
问题 (Environment: VSTS2010 using IronPython and the TFS SDK) Workflow #1 The following workflow behaves as I expect: Create a new testrun Add testpoint(s) Save testrun My expected behavior : The testrun is saved with the testpoints. Observed behavior : Matches my expected behavior - verified with a testrun.QueryTestResults() call. Workflow #2 The following workflow does not behave as I expect: Create a new testrun Add testpoint Save testrun Add another testpoint Save testrun My expected behavior:

TFS api not validating the credentials

大城市里の小女人 提交于 2019-12-13 06:28:41
问题 I have the following code on my windows form application: // Connect to server var tfs = new TeamFoundationServer(tfsServer, credentials); try { tfs.EnsureAuthenticated(); } catch (Exception ex) { MessageBox.Show(ex.Message); }; This is working. The problem is TeamFoundationServer is an obsolete class. The TeamFoundationServer class is obsolete. Use the TfsTeamProjectCollection or TfsConfigurationServer classes to talk to a 2010 Team Foundation Server. In order to talk to a 2005 or 2008 Team

Cannot programatically display built in Merge tool to resolve a merge conflict

别来无恙 提交于 2019-12-13 04:47:56
问题 I use Unit Testing project VS 2012 and too an Console Application project VS 2012 using TeamFoundationClient 11.0 and TFS 2008 . I use MergeContent(Conflict, true) but not shown UI (dialog modal for merge). I have seen this reference: Cannot programatically display built in Merge tool to resolve a merge conflict https://connect.microsoft.com/VisualStudio/feedback/details/783320/cannot-programatically-display-built-in-merge-tool-to-resolve-a-merge-conflict Workspace.MergeContent() with

TFS Get Latest Code - GettingEventArgs properties 'Total' and 'Current' not visible

半世苍凉 提交于 2019-12-13 04:39:25
问题 I have written code to get latest from TFS using the client APIs. I would like to be updated on the progress and I understand that the properties "Total" and "Current" of GettingEventArgs can be used. But these properties are not visible during design time but only visible at runtime (see image below). But event at runtime, I am unable to fetch them using reflection as give below. static void versionControl_Getting(object sender, GettingEventArgs e) { GettingEventArgs status =

TFS JAVA SDK - How to run shared query

自闭症网瘾萝莉.ら 提交于 2019-12-13 02:48:25
问题 I have a application which useds TFS JAVA SDK 14.0.3 . I have a shared query on my tfs , how can i run the shared query and get the response back using TFS SDK 14.0.3 Also I could see that the query url will expire in every 90 days , so any better way to execute the shared query? Now I have a method to run a query , i want method to run shared query also. public void getWorkItem(TFSTeamProjectCollection tpc, Project project){ WorkItemClient workItemClient = project.getWorkItemClient(); //

Cannot seem to use TFS API, how to correctly import items from the SDK?

 ̄綄美尐妖づ 提交于 2019-12-12 19:56:50
问题 I am trying to write some simple code to connect to a TfsTeamProjectCollection , however, I continue to get the message : "type or namespace name 'WorkItemStore'/'WorkItemCollection'/'TfsTeamProjectCollection'/'Project' could not be found." I have tried to find the TFS SDK, and how to install it, but I can't seem to figure this out - I seem to be blind as this is definitely well documented somewhere. I believe I need to install some of these items, and then add them as references to my

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

[亡魂溺海] 提交于 2019-12-12 09:48:33
问题 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 can I specify the native dlls to be included? Update: I tried static block System.load("full path") and loaded it using app.classloader().loadClass("NativeUtils.class"); , but still I get the exception: java.lang.UnsatisfiedLinkError: com.microsoft

Error when using TFS API concerning updating work items( HTTP Status 500 )

拟墨画扇 提交于 2019-12-12 05:37:03
问题 I am trying to update a field(/fields/System.Description) of a work-item on TFS using the TFS API according to the official Microsoft document. There is something wrong with the api "Update work items" when using the sample code listed on the page, the returning status code of the response is 500 if I want to "add" or "replace" a certain filed, but success if I want to "test" a value, can anyone please give me some help? using System; using System.Net; using System.Net.Http; using System.Net