tfs-sdk

How do you get the latest version of source code using the Team Foundation Server SDK?

徘徊边缘 提交于 2019-11-27 21:21:17
I'm attempting to pull the latest version of source code out of TFS programmatically using the SDK, and what I've done somehow does not work: string workspaceName = "MyWorkspace"; string projectPath = "/TestApp"; string workingDirectory = "C:\Projects\Test\TestApp"; VersionControlServer sourceControl; // actually instantiated before this method... Workspace[] workspaces = sourceControl.QueryWorkspaces(workspaceName, sourceControl.AuthenticatedUser, Workstation.Current.Name); if (workspaces.Length > 0) { sourceControl.DeleteWorkspace(workspaceName, sourceControl.AuthenticatedUser); } Workspace

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

拥有回忆 提交于 2019-11-27 19:29:54
问题 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\ 回答1: These have been moved into a Nuget package. They're also stored under the "CommonExtensions"

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

允我心安 提交于 2019-11-27 12:38:35
问题 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! 回答1: Not in any officially supported manner. That said, it doesn't take

How to create a test run and result using the Team Foundation Server API?

情到浓时终转凉″ 提交于 2019-11-27 12:28:49
I have found several samples about retrieving test results using the TFS API, but no documentation on creating results programmatically. My aim is to create a lightweight alternative to using Microsoft Test Manager for running manual tests. Does anyone have experience with this? Are there any examples out there that I'm missing? Here's what I have so far: ITestCaseResult CreateNewTestCaseResult(ITestSuiteEntry testCaseEntry) { var run = testCaseEntry.TestSuite.Plan.CreateTestRun(false /* not automated */); run.AddTest(testCaseEntry.TestCase.Id, suiteEntry.TestSuite.DefaultConfigurations[0].Id,

Retrieving work items and their linked work items in a single query using the TFS APIs

时光怂恿深爱的人放手 提交于 2019-11-27 09:15:43
Does anyone know if it is possible to retrieve a list of work items and their linked work items in one trip from TFS using their TFS API web services? At the moment, we are having to make a second call for each of the work items made during the first call, and is introducing a performace issue. If that is not possibly, is there a way to peek at the type of the linked work item without retrieving them (e.g. See if it is a task or issue) ? The article you 're referring to in your answer presents with a method to do what you 're after, using WIQL . Certainly, not a bad choice. Another way, in my

TFS 2015 SDK Missing Microsoft.WITDataStore64.dll

纵饮孤独 提交于 2019-11-27 06:42:55
问题 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

How to programmatically get information about branches in TFS?

随声附和 提交于 2019-11-27 01:21:08
问题 I need to programmatically find out information about branches in TFS. For instance the main thing i am interested is given root folder $/MyProject/Project1 I neeed to find out what other folders have been branched from it. I am just after the right API methods. Say i have connection to TFS server and have access to VersionControlServer and Workspace class instances. 回答1: Ok, this was both easier and more difficult than I thought it would be. I was able to pull this together from a few

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

╄→гoц情女王★ 提交于 2019-11-26 23:33:36
问题 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

Retrieving work items and their linked work items in a single query using the TFS APIs

谁说我不能喝 提交于 2019-11-26 14:38:41
问题 Does anyone know if it is possible to retrieve a list of work items and their linked work items in one trip from TFS using their TFS API web services? At the moment, we are having to make a second call for each of the work items made during the first call, and is introducing a performace issue. If that is not possibly, is there a way to peek at the type of the linked work item without retrieving them (e.g. See if it is a task or issue) ? 回答1: The article you 're referring to in your answer