tfs-sdk

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

柔情痞子 提交于 2019-12-02 09:01:44
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? 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 from 'vso-node-api/interfaces/Common/VSSInterfaces'; var collectionUrl = "https://xxxxxx.visualstudio.com";

Upload a file using TFS Client APIs

爷,独闯天下 提交于 2019-12-02 09:01:25
问题 I want to upload a file from asp.net webpage to TFS server. Using TFS API I have created bug from my web page - but the bug also needs a file attachement to upload please let me know. 回答1: You should be able to simply create an Attachment object and add it to the Attachments collection on the WorkItem before you save it: Dim attachment As New Microsoft.TeamFoundation.WorkItemTracking.Client.Attachment("c:\somefile.txt", "My Comment") workItem.Attachments.Add(attachment) workItem.Save() 来源:

SpecificVersion=False with TFS API dll's

馋奶兔 提交于 2019-12-02 07:22:52
Our web application makes heavy use of the TFS API. We developed and compiled it with the TFS 2010 API dll's. We also set SpecificVersion=False. The problem is that when we deploy to a server that has TFS 2012 and not TFS 2010, we get the following error: Could not load file or assembly 'Microsoft.TeamFoundation.Client, Version=10.0.0.0,.....etc. The system cannot find the file specified. Any way to migitate this? TFS 2012 is installed into the GAC and the fact we are saying "SpecificVersion=False" should tell the app to use the 2012 (version 11) of the dll's instead of 2010 (version 10).

API resource location is not registered

若如初见. 提交于 2019-12-02 07:11:09
问题 i am able to create project/delete/rename everything but when it come for getting group its says "API resource location ebbe6af8-0b91-4c13-8cf1-777c14858188 is not registered on http://khanamar3:8080/tfs/DefaultCollection/" please help..... public PagedGraphGroups GetAllGroups() { VssConnection connection = Context.Connection; GraphHttpClient graphClient = connection.GetClient<GraphHttpClient>(); //error coming in next line... PagedGraphGroups groups = graphClient.GetGroupsAsync().Result;

Make Changes to a TFS Work Item as a specific user

谁都会走 提交于 2019-12-02 06:25:01
问题 I am working on creating a Web application, which the users in my team will use to make changes to TFS Work Items. I am using TFS API for this.. In order to access the TFS Server , I used my credentials within the Web Application. Now each time someone uses the application and makes changes to TFS work items, it shows as if I have made changes to these items since my credentials are being used in the application. Is there a way I can use the credentials of the person logging into my

API resource location is not registered

一曲冷凌霜 提交于 2019-12-02 03:59:16
i am able to create project/delete/rename everything but when it come for getting group its says "API resource location ebbe6af8-0b91-4c13-8cf1-777c14858188 is not registered on http://khanamar3:8080/tfs/DefaultCollection/ " please help..... public PagedGraphGroups GetAllGroups() { VssConnection connection = Context.Connection; GraphHttpClient graphClient = connection.GetClient<GraphHttpClient>(); //error coming in next line... PagedGraphGroups groups = graphClient.GetGroupsAsync().Result; foreach (var group in groups.GraphGroups) { LogGroup(group); } return groups; } You could use

Calls to `Workspace.PendAdd` not adding items

拟墨画扇 提交于 2019-12-02 03:44:28
问题 I have the following function that is being called in a loop on two new projects to add to source control. Each iteration of the loop gets the source code, copies it to the folder, creates a tfs team project, creates a workspace for that project, and then tries to add the code to source control. static void Main(string[] args) { var tfsWorkItems = _<IWorkItems>(); var workItems = tfsWorkItems.GetProjectsToMigrate(); var tfs = _<ITfs>(); var logFilePath = new DirectoryInfo("C:\\log"); var

Make Changes to a TFS Work Item as a specific user

爱⌒轻易说出口 提交于 2019-12-02 02:44:56
I am working on creating a Web application, which the users in my team will use to make changes to TFS Work Items. I am using TFS API for this.. In order to access the TFS Server , I used my credentials within the Web Application. Now each time someone uses the application and makes changes to TFS work items, it shows as if I have made changes to these items since my credentials are being used in the application. Is there a way I can use the credentials of the person logging into my application to show up on TFS as the person making the changes ? MrHinsh - Martin Hinshelwood You need to use

How to get all unmerged changesets for a branch using TFS 2010 SDK?

旧巷老猫 提交于 2019-12-02 00:12:36
Currently I have 2 branches - Development and Release. Is it possible to obtain all unmerged changesets from Development to Release? Currently we use the default Merge Wizzard. However it has one big limitation - it cannot filter by user. So I was thinking of building an app that will pull all unmerged changesets from Development to Release and allow me to filter those changesets by user. You could write a small console app that goes like this: using System; using Microsoft.TeamFoundation.Client; using Microsoft.TeamFoundation.VersionControl.Client; namespace UnmergedChangesets { class Program

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

二次信任 提交于 2019-12-01 22:49:51
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 textbox. Also the info of the last time a user entered the project. Cfir TSabari I Don't know how to check when was the last time a user connected to the project, but this how you can access the source control history from code, using Microsoft.TeamFoundation.Client; using Microsoft.TeamFoundation.VersionControl.Client; using System.Collections; using