代码之家  ›  专栏  ›  技术社区  ›  abatishchev Karl Johan

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

  •  6
  • abatishchev Karl Johan  · 技术社区  · 14 年前

    目前,我发现了两种获取最新版本的方法-在使用团队资源管理器的Visual Studio和使用TFS Power Tools Shell扩展的Windows资源管理器中。

    因为我们的TFS服务器的位置与使用它的开发人员相差甚远,速度非常慢,而且经常挂在应用程序(vs/explorer)上。所以我想运行get in console来最小化操作系统在操作过程中的负载。

    似乎tf.exe和tfpt.exe都不包含任何类似get的内容。

    还有别的吗?

    1 回复  |  直到 14 年前
        1
  •  11
  •   driis    14 年前

    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