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.
When I run this is gives me this error:
Unrecognized command option 'workspace'
I cant figure out how to provide the workspace name?
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
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With