Create a team instance outside of the Vis Studio
I want to create an Instance of team and do checkin's outside of the Visual Studio Environment.
I have created a console app to be run at night. DOes anyone have a link for create an instance of team inside an app?
Thanks,
Nick
[273 byte] By [
nick5454] at [2007-12-21]
I think that creation of new Team Projects must be carried out inside of the IDE due to the way that the project creation wizard works - I'm not aware of an easy way to do this from raw API calls (but I could be wrong).
I've moved this thread into "TFS - General" from "TFS - Work Item" in the hope that somebody here will be able to give you a difinitive answer. Maybe you could explain why you want to create a new team project outside of Visual Studio?
Being able to check-ins outside of visual studio is a much more simple task, you can use the command line tf.exe to script such a solution or use the .NET object model to do it programatically.
For tf.exe see:-
http://msdn2.microsoft.com/en-us/library/cc31bk2e(en-us,vs.80).aspx
For a quick example of using the object model see:-
http://blogs.msdn.com/buckh/archive/2006/03/15/552288.aspx
Good luck,
Martin.
About creating project, if this is what you want, I agree with Martin.
But if you want to create an object instance of TFS in your code, just take a look to the second link, here also I post you a little piece of code to do it with credentials:
NetworkCredential credentials =
new NetworkCredential(userName, userPassword,
domain);
TeamFoundationServer tfs =
new TeamFoundationServer(serverName, credentials);