Reputation: 1358
Are there any ways to create new Team Project in TFS Server by using TFS API? I'm trying to create a new code to intergate to TFS server automatically.
Upvotes: 3
Views: 665
Reputation: 1358
The issue has been resolved by using TFPT.exe (using .bat file)
CD C:\Program Files (x86)\Microsoft Team Foundation Server 2012 Power Tools
TFPT.exe createTeamProject /collection:[TEAM COLLECTION] /TeamProject:[TEAM PROJECT] /ProcessTemplate:"Microsoft Visual Studio Scrum 2.2" /SourceControl:New /log:[LOG FILE] /verbose /noreports /noportal
Thanks for your help!
Upvotes: 3
Reputation: 4680
As far as I know creating team projects through the API is not supported. But you can use Team Foundation Power Tools cmd line interface to create projects. There are a few posts out there regarding the usage.
Team Foundation Power Tool Command Line (tfpt.exe)
A companion tool to “tf.exe” that offers additional version control commands, work item tracking, and team project manipulation. Some commands invoke a graphical user interface when run.
Run tfpt.exe /? to find a list of the supported commands:
Command Description
Upvotes: 2