Create a Team Project Programatically
Can anybody help me with a code sample to create a Team Project programatically using TFS client APIs.
Can anybody help me with a code sample to create a Team Project programatically using TFS client APIs.
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.
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..