I’ve heard that it’s not possible, but I figured I’d ask here and get a definitive answer. Is there a way to use the Team Foundation Server 2010 SDK to programatically create a new project in a collection?
So far, all I’ve seen is to use this method of scripting the VS 2010 IDE: http://blogs.msdn.com/b/granth/archive/2009/09/25/scripting-team-project-creation-in-tfs2010.aspx. Ugly.
I’m keeping my fingers crossed that there’s a better way. Ideas?
You can use this instead of the command line:
you’ll need to add a reference to this dll:
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies\Microsoft.VisualStudio.TeamFoundation.TeamExplorer.dllYou will still need to use the xml, but its a bit more elegant.
Hope this is what you where looking for. 🙂
Good luck,
Oshry