目前我找到了两种获取最新版本的方法 - 在 Visual Studio 中使用 Team Explorer 和在 Windows Explorer 中使用 TFS Power Tools Shell Extensions。
因为我们的 TFS 服务器与使用它的开发人员相差很远,所以它非常慢并且经常卡在应用程序(VS/Explorer)上。所以我想在控制台中运行 Get 以最小化操作过程中操作系统的负载。
似乎 tf.exe 和 tfpt.exe 都不包含 Get 之类的内容。
还有别的吗?
最佳答案
TF.exe 确实有一个 get 命令。以下是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
关于tfs - 是否可以使用某些控制台客户端在 TFS 中获取最新版本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3263035/