开发者

The Command "File.BatchNewTeamProject" is not available in VSTS 2010

开发者 https://www.devze.com 2022-12-08 20:24 出处:网络
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 s

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 开发者_StackOverflow社区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?


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

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


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

Includes an assembly that hides BatchNewTeamProject behind a simple programmatic interface, and a sample desktop app that you can use to create and provision new Team Projects. Must be run on a computer that has VS 2010 installed, and by a user that has permissions to create new projects. But it doesn't require you to interact with VS directly, at all.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号