tfs - 是否可以使用某些控制台客户端在 TFS 中获取最新版本?

标签 tfs console-application getlatest

目前我找到了两种获取最新版本的方法 - 在 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/

相关文章:

tfs - 将TeamCity连接到TFS

tfs - 使用Visual Studio架子集查看历史记录

c# - 如何通过控制台应用程序将文件上传到 OneDrive?

perforce - P4V 获取最新版本不执行任何操作

SQL-如何让sql自动设置下一个id

git - Git如何获取当前分支的最新标签名?

azure - 将数据从 TFS 2015 导入到 Visual Studio Team Services?

tfs - TFS Express 中缺少什么?

java - 从另一个 Java 控制台获取我的应用程序的输出

.net - 即使 EF 可以成功连接,Asp.Net Identity 也无法连接到数据库