TFS API Help [Urgent]

Hi!

I would like to create a team project, work item, resource allocation, etc. from my application using TFS API.

But i do not know where to start? I found Microsoft.TeamFoundation, Microsoft.TeamFoundation.Client, Microsoft.TeamFoundation.Proxy.Portal provides APIs for all the above functionalities. But it is very difficult to me to understand the usages of these APIs.

Please do the needful asap.

Regards,

Sheik

[840 byte] By [udooz] at [2007-12-22]
# 1

Buck has a great example that shows some simple version control operations (create a workspace, pend a change, check in the change and hook up some event listeners). It's a good starting point.

http://blogs.msdn.com/buckh/archive/2006/03/15/552288.aspx

RobertHorvick at 2007-8-30 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...
# 2

Hmmm I think the best is follow some ways:

  • Visual Studio 2005 SDKs, which are avaliable in VSIP program
  • This forums
  • Read blogs from people working with it, from MSDN and other places
LuisFraile at 2007-8-30 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...
# 3

Hi!

Thanks for your reply.

But i've already crossed these stages. What i want is,

Create a team project programmatically and assign my custom process template to it?

I used ICommonStructureService.CreateProject() method and created project also. But i cannot assign a process template to it. And these projects does not display in my VS2005's Team Explorer.

Regards,

udooz

udooz at 2007-8-30 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...
# 4

Hi Luis Fraile!

Hmmmm, last one month i am doing like this and created lot of pilot projects also.

Really i'm waiting for full documentation.

Regards,

udooz

udooz at 2007-8-30 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...
# 5
I think when they are going to put full object model documentation in Msdn soon, I'm waiting for that also, and I hope they will do it soon
LuisFraile at 2007-8-30 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...
# 6

Ups sorry, I forgot I have readed about it today, you have more info here:

http://blogs.msdn.com/robcaron/archive/2006/03/28/563711.aspx

LuisFraile at 2007-8-30 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...
# 7

Hi Luis Fraile!

Thanks for the information. I think it will help me a lot.

Regards,

udooz

udooz at 2007-8-30 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...
# 8

There is no simple programmatic way to create a project. Project creation is done via a set of plugins that are on the client. Each plugin is responsible for creating/configuring a portion of a project. The first step you took (ICommonStructureService.CreateProject) is one of the first things that happens, then another plugin creates groups, another plugin creates work item types, queries, and the initial set of work items, etc. While all of this is available publicly thru the various web services there isn't a single API to create a new project based on a process template.

-Dennis

DennisHabibMSFT at 2007-8-30 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...
# 9
Hi, do you have an example for this? Creating a Team

Project via the TFS API?

Tanks

Scheinka at 2007-8-30 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...
# 10
Dennis Habib MSFT wrote:

There is no simple programmatic way to create a project. Project creation is done via a set of plugins that are on the client. Each plugin is responsible for creating/configuring a portion of a project. The first step you took (ICommonStructureService.CreateProject) is one of the first things that happens, then another plugin creates groups, another plugin creates work item types, queries, and the initial set of work items, etc. While all of this is available publicly thru the various web services there isn't a single API to create a new project based on a process template.

-Dennis

As Dennis said, there is no simple way to create project programatically, and I don't know any sample on that

LuisFraile at 2007-8-30 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...
# 11

Hi,

I came to know that Microsoft provides only limited set of programmatic features in TFS API. To create new team projects and all such big things, you should only use VS2005.

Regards,

Udooz

udooz at 2007-8-30 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...
# 12
Creating projects is not supported, for the moment, via API, because it needs a lot of user interaction, notice that you can even extend the process of creating projhects with your own plugins.
LuisFraile at 2007-8-30 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...

Visual Studio Team System

Site Classified