How to get specific version of a file from checked-in task?
When I right click on a file and select history. It shows me “change set” and when right click on “change set” and select “get this version” then it takes other files also of that version. But I need to take specific version of only one file.
if you right click on your file in source control explorer and select Advanced->Get Specific Version you can select which version of the file you want. you can search by changeset etc from there.
or by command line by date:
tf.exe get c:\myproject\mybranch\myfile.txt /v:D"2013-11-23"
or by changeset number:
tf.exe get c:\myproject\mybranch\myfile.txt /v:C12345
you can see the changeset numbers by the History command:
tf.exe history c:\myproject\mybranch\myfile.txt