DCSIMG
TFS API - Shai Raiten's Blog

Shai Raiten's Blog

It's all about code...

Browse by Tags

All Tags » TFS API (RSS)
TFS API Part 49 – Delete Team Project
There are many improvements in TFS API for 2012 version, in my previous post I’ve talked about TFS API Part 48 – WorkItemControl And Bypass Work Item Rules that allow work item creation with bypass rule mode in WorkItemStore that allow you to create and change any field value without applying the WorkItem template rules. in this post I’ll show how to delete Team Project using TFS API, be aware Delete Team Project is unrecoverable! Download Demo Project Step 1: Connect TFS and Getting Team Projects...
TFS API Part 48 – WorkItemControl And Bypass Work Item Rules
It’s been a while since I wrote about TFS API, not because there is no more about it is because I worked on Windows Store for the past couple of months so I didn’t had the time. More About TFS API So today post will be about two changes in TFS 2012, the first one is WorkItemControl based on WPF that replaced the WorkItemFormControl based on WinForms, the second will be about WorkItemStore bypass rule – Allowing you to save and change work item values without obeying the work item rules. Download...
TFS API Part 47 (VS11) – Manage Iterations Dates
Tweet Over the last posts I talked about “ TFS API Part 46 (VS11) – Team Settings ”, in this post I’ll show how to get and change Iteration Dates from TFS API. We’ll show all Teams under a specific Team Project and once you click on a Team you will see its Iterations and Dates. Download Demo Project Step 1: Create Project and Add Reference Create an WPF application and add the following references: First add reference for: Microsoft.TeamFoundation.Build.Client (11.0.0.0) Microsoft.TeamFoundation...
TFS API Part 46 (VS11) – Team Settings
Tweet In the previous posts “ TFS API Part 45 (VS11) – Modify Teams and Team Members ” I talked about Teams, from getting all team to modify and creating new Team using TFS API. Now, Teams are more than just a “Security Group”, they hold specific settings such as relevant Areas/Iteration for that Team. The “Team” can be assigned to Backlog Iteration (Set as Team’s backlog Iteration), this takes all paths under that iteration and add them to the team backlog. You can also change the Iteration backlog...
TFS API Part 45 (VS11) – Modify Teams and Team Members
Tweet In my previous post “ Teams and Team Members ”  I talked about new Service in TFS API called – TfsTeamService. Using this service we can control Teams and Team Members under TFS. We can create and remove Teams and Team Members using TFS API. I know this can be quite confusing but Teams in TFS are simply Group (Security Group), same as Contributors, Administrators etc. If you open Security tab under TFS Web Management you can see that there is two separate lists of Groups – Teams and TFS...
TFS API Part 44 (VS11) – Teams and Team Members
Tweet TFS 11 comes with many great changes for software development, the first and super important is Teams, until TFS 11 Task work item or any other work item has to be assign to individual, means that you can’t assign a Task to a Scrum Team etc… So many people has built customize solution to handle this but no need! because TFS 11 comes with this great Feature! In TFS Web Management site you can add as many teams as you want under One Team Project. If your team works with Scrum then you should...
TFS API Part 43–Delete Work Item Tool
Tweet In previous post - TFS API Part 21: Delete Work Item using WorkItemStore (Demo Application) I showed how to delete Work Items from TFS using TFS API. My problem was that it not easy to delete work items one by one so I decided to build a tool based on TFS Queries to allow me easily select the work items I want to delete. You can download executable from Here You can download Source Code from Here *** Deleting Work Item Action Is Not Recoverable *** Enjoy
TFS API Part 42 – Getting Started With Lab Management API
Tweet I did some cool things lately with TFS Lab Management API, from connecting it to TFS Web Access and allow REST access to the lab (if you want to ask why – The customer is always right ). So this part of TFS API will deal with Lab Management API, although Lab Management API is not public I’ll show some cool things you can do but this will be under your own risk. Again, this is just the beginning of the Lab Management API, so let’s get started Download Demo Project Step 1: Located “ Microsoft...
TFS API Part 41–Manage Groups and Members
Tweet In the past I’ve showed some examples on how to work with TFS IGroupSecurityService for getting users list, but you can do much more, Create new Group, Add or Remove users from group etc… TFS API Part 25: Get TFS User List (Mail Sid, Account, Domain) – TFS 2010 TFS API Part 4: Get TFS User List (Mail, Sid, Account, Domain) Download Demo Project Step 1: Connect To TFS and Get All Users and Projects As always we need to start with connecting to TFS, but here we’ll also obtain 2 important services...
My Lecture at Munich ALM Days 2011
Tweet The conference was Amazing!!! I had great time in the conference with partners, customers and friends, I didn’t went to most of the lectures (Ich weiß nicht Deutsch spricht) but from the people who presented the presentation and the title there were plenty of interesting lectures. In my lecture I’ve talked about Applied Software Testing with Visual Studio 2010 , I showed demos on Test Manager, Web Performance Test, Load Testing and of course Coded UI Testing. I’ve also talked about Migration...
TFS API Part 40–Build Service Host
Tweet First, what is the Build Service Host or IBuildServiceHost ? The BuildServiceHost object represent the physical location of the Controller and/or Agent objects. The name property is usually the machine name that the Controller or Agent lives on. In earlier versions, this was simply the Machine Name property on the Agent. Now, I’m working with a customer works with Lab Manager and after upgrading the SCVVM and perform some port changes we faced an issue – The Build Service Host stuck in your...
TFS API Part 39 – Show Deleted Items in Source Control
Tweet I got this questions a lot, if this because lots of my customers working with branches and often they delete those old branches or just because someone delete a folder and you want to see its content. There are two ways to see deleted items from source control, the first is through Visual Studio and the second through TFS API. See Deleted Items In Visual Studio: First open visual studio 2010 and open source control Navigate to –> Tools –> Options –> Source Control –> Visual Studio...
How To Change TFS 2010 Attachment Size
CodeProject Here is a post from 2008 on how to change attachment size in TFS 2008 , the same concept is available in 2010 but there is a small confusion about 2010. Many people had problems changing the attachment size in TFS 2010 using the same web service because the following error: 500 Internal Server Error There where people who changes the attachment size using code: TeamFoundationServer tfs = TeamFoundationServerFactory .GetServer( @"yourtfsserver/.../DefaultCollection" ); ITeamFoundationRegistry...
Visual Studio ALM Video & Two Updates for TFS/VS You Should Install
CodeProject Some news for Visual Studio 2010, I’ll start from several updates you should to apply on you TFS and Visual Studio. KB - TFS 2010 SP1 Cumulative Update 1 – KB2536929 This is the first Update from Microsoft since SP1, and the new concept from Microsoft is to release hot fixes for critical bugs, every once in a while when the development team feels they have critical mass of fixes they will publish new Update includes all hot fixes. – So make sure your Visual Studio and TFS are up to date...
TFS API Part 38 – Create Label
In my last post on TFS API I summarize in Index Page include 37 parts - http://blogs.microsoft.co.il/blogs/shair/archive/2011/05/18/tfs-api-index-parts-1-to-37.aspx And I coming back with more about TFS API, and Today about how to create Label using TFS API. Download Demo Project Step 1: Create Project and Add Reference Create an WPF/WinForm application and add the following references: First add reference for Microsoft.TeamFoundation.dll Microsoft.TeamFoundation.Build.Client Microsoft.TeamFoundation...
More Posts Next page »