Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TFS Get latest Version from Specific Folder

I want to create at button to get latest Version of my code from a specific folder without using Team Explorer -> Source Control tree every time.

So I am trying to make and external tools reference to run the tf.exe get command.

This is what I have so far.

enter image description here

When I run this is gives me this error:

Unrecognized command option 'workspace'

I cant figure out how to provide the workspace name?

like image 509
Dan Avatar asked Aug 17 '11 16:08

Dan


1 Answers

You can omit the workspace name. tf.exe can resolve the server path and local path mappings because it stores workspace information locally.

The command you gave is correct (assuming you have $/Dev mapped):

tf.exe get /recursive $/Dev

However it's critical that you have $/Dev mapped directly (not just having children mapped) and unambiguously (you cannot have $/Dev mapped in two different workspaces) or else tf.exe will not be able to determine the correct local path.

Since a given local path can only be mapped to a single server path, the easiest way to do this is simply by specifying the local path you wish to get. For example:

tf.exe get /recursive C:\Dev

Again, this assumes that you have $/Dev mapped to C:\Dev.

like image 124
Edward Thomson Avatar answered Oct 09 '22 20:10

Edward Thomson