tfs-sdk

Listening to TFS Work item state change using C# window service

偶尔善良 提交于 2021-02-08 10:21:04
问题 I am working on a project where i need to sync data (tickets) from help desk department to TFS and vice-a-versa. i am able to add item in TFS using windows service and its running fine. but, Whenever a work item's status is change in TFS, i want to update the same in Help desk system. so for that i need an event listener kind of things which can listen to TFS work item status change. I am using TFS2010 API and i also looked into ISubscriber. but it look like i need to develop plug-in and put

Is ISubscriber still supported in TFS2018?

[亡魂溺海] 提交于 2021-02-07 19:34:29
问题 Up to TFS 2017 there was a library in Plugins folder called Microsoft.TeamFoundation.Framework.Server it contained ISubscriber interface which one could override in order to attach hooks and add behavior for events such as build completed or new push to the git repository. The library is missing in TFS 2018. Does anyone know how do we maintain our plugins now? 回答1: The library is still there, just under the TFS 2018 install directory. If you’re deploying your plugins into TFS 2018 you will

TFS 2017+, C#, set Default Area

自闭症网瘾萝莉.ら 提交于 2021-01-07 03:01:51
问题 I am working on creating a team in TFS using C# and the dll's provided. I'm having a hard time setting the default Area and could use some help. VssCredentials vc = new VssCredentials(true); TfsTeamProjectCollection tpc = new TfsTeamProjectCollection(new Uri(TFS_CONNECTION_URL), vc); tpc.Authenticate(); TfsTeamService teamService = tpc.GetService<TfsTeamService>(); ProjectInfo projectInfo = cssService.GetProjectFromName(TEAM_PROJECT_NAME); TeamFoundationTeam team = teamService.CreateTeam

How to update a custom TFS field programmatically

偶尔善良 提交于 2020-05-27 04:06:31
问题 We have a custom build process (not using MS Build) and during that process I am adding a "fake" build to the global builds list. The reason I am doing that is so that you can select the build for a given work item (found in build). We have a custom field, build included, which is intended to show which build that work item was fixed in. I am having trouble figuring out how to update this field programmatically. The idea is I will have a small app that does this that I will call during the