Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Check-Out files from TFS 2010 with powershell

I only want to check out a path with powershell and also check in this path one minute later at Team Foundation Server.

How can i do this?

I have installed the tfs power tools at my server.

like image 421
user1218240 Avatar asked Dec 03 '12 15:12

user1218240


1 Answers

You don't need the power tools. Just use the tf.exe command line util that comes with Visual Studio with TFS Team Explorer. tf edit <file> /noprompt to check out and tf checkin <file> /comment:$comment /noprompt to check in. Look at the command line usage on tf.exe for more info tf /? and tf checkin /?. You will need to configure your PowerShell session with the Path to tf.exe. This is usually done by the VS vars batch files. But you should be able to simply add to the path like so: $PATH += "${VS110COMNTOOLS}..\Ide".

like image 53
Keith Hill Avatar answered Sep 21 '22 00:09

Keith Hill