The Command “File.BatchNewTeamProject” is not available in VSTS 2010

commanddevenvtfs

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 silently in the background from my c# win app. I am aware of a requirement that Team Explorer has to be open and connected to TFS before this command can run, however, when I start a process with devenv.exe, a fresh instance of visual studio pops up with Team Explorer not connected by default. How can I solve this problem?

Best Answer

I added an extra command statement and the whole thing started working.

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

Related Topic