views:

138

answers:

1

Hi, 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?

A: 

Please see my response to this related question: http://stackoverflow.com/questions/1558306/tfs-2010-beta-1-creating-team-projects-programmatically

Jim Lamb
I have added the dll but there doesn't seem to be a BatchNewTeamProject class available. Or like you said, it works only on Beta2? Could you elaborate with an example?
TS