目前我发现两种获取最新版本的方法 - 一种是在 Visual Studio 中使用 Team Explorer,另一种是在 Windows Explorer 中使用 TFS Power Tools Shell 扩展。
由于我们的 TFS 服务器与开发人员之间距离很远,因此在应用程序(VS/Explorer)上非常慢,而且经常卡顿。所以我想在控制台中运行 Get 命令,以尽量减少操作期间对 OS 的负荷。
似乎 tf.exe 和 tfpt.exe 都不包含 Get 命令。
还有其他方法吗?
目前我发现两种获取最新版本的方法 - 一种是在 Visual Studio 中使用 Team Explorer,另一种是在 Windows Explorer 中使用 TFS Power Tools Shell 扩展。
由于我们的 TFS 服务器与开发人员之间距离很远,因此在应用程序(VS/Explorer)上非常慢,而且经常卡顿。所以我想在控制台中运行 Get 命令,以尽量减少操作期间对 OS 的负荷。
似乎 tf.exe 和 tfpt.exe 都不包含 Get 命令。
还有其他方法吗?
TF.exe命令确实有一个获取命令。以下是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
现在你没有提到具体的版本,但我相信它从第一个版本的TF.exe开始就存在了。
要获取解决方案目录的最新版本,只需在命令行中导航到映射的目录,并执行:
tf.exe get * -recursive
tf | more
时不够注意。 - abatishchev