Is it possible to get the latest version in TFS using any console client?

Currently, I have found two ways to get the latest version - in Visual Studio using Team Explorer and in Windows Explorer using the TFS Power Tools shell extensions.

Since our TFS server is far from the developers working with it, it is very slow and very often hangs in the application (VS / Explorer). Therefore, I want to run Get in console in order to minimize the load on the OS during operation.

It seems that both tf.exe and tfpt.exe do not contain anything like Get.

Is there anything else?

+6
tfs console-application
source share
1 answer

TF.exe has a get command. Below is the output of TF.exe get -?

 TF - Team Foundation Version Control Tool, Version 10.0.30319.1 Copyright (c) Microsoft Corporation. All rights reserved. Retrieves a read-only copy of a file from Team Foundation Server to the local workspace and creates folders on disk to contain it. tf get itemspec [/version:versionspec] [/all] [/overwrite] [/force] [/preview] [/recursive] [/remap] [/noprompt] [/login:username,[password]] Versionspec: Date/Time D"any .Net Framework-supported format" or any of the date formats of the local machine Changeset number Cnnnnnn Label Llabelname Latest version T Workspace Wworkspacename;workspaceowner 

Now you are not mentioning a specific version, but I am sure that it has been in TF.exe since the first release.

To get the latest solution catalog, just go to the mapped directory on the command line and do:

 tf.exe get * -recursive 
+11
source share

All Articles