tfs-sdk

TFS 11 2012 API Questions : query capacity and days off

此生再无相见时 提交于 2019-11-29 10:54:24
I need to get several things done with the TFS API. Among those, I have to read the Resource planning information for the sprints of each Project to display in a WPF UI. Tagging along this guide , I now have the following method: private TfsTeamService _teamService; private ICommonStructureService4 _structureService; TeamSettingsConfigurationService _teamSettingsConfigurationService; public void GetUserIterationAssignments(IList<ProjectInfo> projects) { foreach (ProjectInfo project in projects) { Console.WriteLine(project.Name); TeamFoundationTeam team = _teamService.QueryTeams(project.Uri)

How to get specific version of folder from tfs without creating a workspace?

烈酒焚心 提交于 2019-11-29 02:52:16
问题 I would like to get the source code of a project at specific time (changeset). So I need do download whole folder. I would like to do it for different times and handling a different workspace is not very convenient. I know about TFS Get Specific Version into separate folder (with workspace) and Need command to get a file from TFS without a workspace (one file). Is there some solution for whole folder without creating a new workspace? Edit I have found the accepted answer too ambitious. I

TFS API: GetLocalWorkspaceInfo always returns null

寵の児 提交于 2019-11-28 22:21:32
问题 On one of my machines, I get a return value of null from any GetLocalWorkspaceInfo call. I have isolated to problem to where it even fails for this simple program: namespace WorkstationTest { using Microsoft.TeamFoundation.VersionControl.Client; class Program { static void Main() { string workspaceLocalPath = @"C:\Dev"; var info = Workstation.Current .GetLocalWorkspaceInfo(workspaceLocalPath); // info is always null here } } } What I have already checked: The exact same code works on my other

Is out there any REST API for TFS 2013 On-Premises installation?

我的未来我决定 提交于 2019-11-28 20:43:32
We use company Team Foundation Server 2013 for source code and task management. Is there a way how can I manipulate work items within backlog over REST API? Our project is accessible via web url: https://tfs.company.com/tfs/ProjectCollection/Project I have found this: https://tfsodata.visualstudio.com/ but this seems to work only for projects within https://visualstudio.com . I would appreciate also some examples. Thanks! Richard Banks Not in any officially supported manner. That said, it doesn't take too much exploring to see that some of the APIs are already present in TFS 2013 already. For

TFS 2010 API Resources

感情迁移 提交于 2019-11-28 19:30:52
Does anyone have any good resources for working with the TFS 2010 API? I specifically looking at how to create, read, update and delete work items. Please see the Team Foundation Server 2010 SDK on MSDN Code Gallery. More content will be coming on-line for the RTM release, but you should find enough there to get you started. Contact me know if you have any questions. Shai Ratan's blog has a huge wealth of examples. They're 2008 but 99% still relevant. www.tfsexamples.com has 2008 examples, but still relevant WorkItemManager class from a TFS OS project I'm currently working on called Spruce ,

Where can I find Microsoft.TeamFoundation.VersionControl.Client.dll in Visual Studio 2015 installation?

不打扰是莪最后的温柔 提交于 2019-11-28 13:22:15
I followed instructions in article about supporting multiple versions of Visual Studio in developing checkin policies . Now, where can I find : Microsoft.TeamFoundation.VersionControl.Client.dll For Team Foundation Server 2015 (version 14) under my VS2015 installation? (Or in NuGet?) There is nothing like that in C:\Program Files (x86)\Microsoft Visual Studio 14\Common7\IDE\PrivateAssemblies\ These have been moved into a Nuget package . They're also stored under the "CommonExtensions" folder of your Visual Studio installation, but these are not meant to be referenced anymore, that's what the

How to create work items using Visual Studio Team Services Client for Node.js (vso-node-api)?

时间秒杀一切 提交于 2019-11-28 12:23:03
问题 I need to create VSTS work items using Visual Studio Team Services Client for Node.js (vso-node-api), Please provide any samples on this? 回答1: I created a simple code sample to get and create work item with it for your reference, see following section for details: /// <reference path="typings/index.d.ts" /> import * as vm from 'vso-node-api/WebApi'; import * as wa from 'vso-node-api/WorkItemTrackingApi'; import * as wi from 'vso-node-api/interfaces/WorkItemTrackingInterfaces'; import * as vss

TFS 2015 SDK Missing Microsoft.WITDataStore64.dll

久未见 提交于 2019-11-28 12:02:16
I am attempting to switch to the TFS 2015 SDK dlls (Version 14) for a few reasons. First, they are in nuget and second, the 2013 SDK dlls (Version 12) require the 32-bit flag flipped in IIS. I pulled down nutget package and the namespaces all line up with the existing version 12 namespaces. Everything compiles fine and there was no error on local deployment. However, when I attempt to load projects using the WorkItemStore service. TfsTeamProjectCollection collection = new TfsTeamProjectCollection(URL); var service = collection.GetService<WorkItemStore>(); I get: Additional information: Unable

How to change workflow state of the newly created TFS work item through API?

醉酒当歌 提交于 2019-11-28 01:44:55
I'm creating a work item migration application from "something" to TFS 2013, and I want to have the TFS work items to be in corresponding workflow states as in source system. For instance, if the source work item is in "Closed" state, I want it to be in "Done" state in TFS. I have followed advises in this article , which suggests to set BypassRules property of the WorkItemStore object to true in order to be able to set CreatedDate field. I suppose, the same applies to changing the workflow state, as it also requires bypassing rules. So, I tried the following: // obtain collection and

Passthrough (impersonation) authentication with ASP.NET and TFS api

送分小仙女□ 提交于 2019-11-28 00:12:20
I'm trying to enable passthrough or impersonation authentication inside an ASP.NET website that uses the TFS2010 API. I've got this working correctly with Cassini, however with IIS 7.5 (Windows 7) something is going wrong. I found this blog post on the subject, and tried the following: private static void Test() { TfsTeamProjectCollection baseUserTpcConnection = new TfsTeamProjectCollection(new Uri(Settings.TfsServer)); // Fails as 'baseUserTpcConnection' isn't authenticated IIdentityManagementService ims = baseUserTpcConnection.GetService<IIdentityManagementService>(); // Read out the