开发者

TFS 2010 Beta 1 Creating Team Projects programmatically

开发者 https://www.devze.com 2022-12-08 14:33 出处:网络
is it possible to use some API call to create a new team project (i.e. a开发者_开发知识库dd a new team project to the Project Collection on TFS 2010)?If yes, what is it? I was searching high and low f

is it possible to use some API call to create a new team project (i.e. a开发者_开发知识库dd a new team project to the Project Collection on TFS 2010)? If yes, what is it? I was searching high and low for this...

So far I found how to script it and then call an executable from the command line: http://blogs.msdn.com/granth/archive/2009/09/25/scripting-team-project-creation-in-tfs2010.aspx


I'm not sure if this will work with Beta 1, but it will work with Beta 2 - which will be out very soon. You'll want to take a reference on Microsoft.VisualStudio.TeamFoundation.TeamExplorer.dll (under \Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies). Then you can new up a BatchTeamProjectCreator object and call its BatchCreateTeamProject method. You'll need to pass in a settings file in the same format Grant described in his blog post.

0

精彩评论

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

关注公众号