Create a Team Project Programatically

Can anybody help me with a code sample to create a Team Project programatically using TFS client APIs.

[112 byte] By [NihalChand] at [2008-2-28]
# 1

Nihal,

Unfortunately team projects cannot be created programmatically using APIs. You could do UI automation to create project, but it is not same as programmatic creation. There is bunch of logic in UI that creates project correctly and we plan to remove this dependency in future.

NarenDatha-MSFT at 2007-8-30 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Process Templates...
# 2
You can create the team projects programmatically, but you need to duplicate all the work that Project Creation Wizard (and all the project creation plugins) does. Unfortunately, there is no publicly exposed API to do all of that. Since this is very laborious, there are two options for you:

1. Automate the Project Creation Wizard UI. Very cheap, but not very extensible.
2. Examine what the Project Creation Wizard does, and make wrappers for all the calls it does and invoke them your self. This is error prone, but will be much more resilient to failures than option 1.

Your best option is UI automation..

RaviTerala at 2007-8-30 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Process Templates...

Visual Studio Team System

Site Classified