BatchNewTeamProject File Command Not Available in VSTS 2010

I am trying to automate the creation of team projects using a command built into VS 2010 called File.BatchNewTeamProject using a project settings file as an argument and executing this as a process in the background from my C # win application. I am aware that Team Explorer must be open and connected to TFS before this command can run, however when I start the process using devenv.exe, a new visual studio instance appears with Team Explorer not connected by default, Like can i solve this problem?

+2


source to share


2 answers


I added an extra command statement and it all started working.



devenv / command view.TeamExplorer / command "File .BatchNewTeamProject" C: \ vss2TeamFoundation \ ProjectCreation \ Ajax.xml

+1


source


Just posted this project on Codeplex: http://tfsprojprovisioner.codeplex.com/



Includes an assembly that hides the BatchNewTeamProject behind a simple programming interface, and a sample desktop application that you can use to create and submit new Team projects. Should be run on a computer with VS 2010 installed and a user with permissions to create new projects. But that doesn't require you to interact directly with VS.

0


source







All Articles