【问题标题】:Get latest from tfs server using CLI使用 CLI 从 tfs 服务器获取最新信息
【发布时间】:2012-09-24 16:49:04
【问题描述】:

我正在处理这个命令行,它应该允许我从我的团队基础服务器获取最新版本。我只是做了很多谷歌查找,每次我都卡住了。

这是我得到的和我想要的。

我想从目录(“$/projects/name”)递归获取最新版本,并将其放在本地文件夹(“D:\destination”)中

这是我在尝试拨打电话时遇到的问题:

"C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\tf.exe" 获取 "$/projects/name" /force /recursive "D:\destination" /server:tfs.server .net

这对我来说很有意义,但不知何故它不起作用。

我使用新的 tfs 11。

【问题讨论】:

    标签: tfs batch-file command-line-interface


    【解决方案1】:

    Team Foundation Server 使用 工作空间映射 来配置应将服务器路径下载到本地文件系统的位置。这允许非常复杂的源代码控制配置场景,但这也意味着您需要在下载代码之前执行更多步骤:即creating a workspacesetting the workspace mappings,最后是performing the get

    使用 TFS 命令行客户端执行此操作:

    tf workspace /collection:http://server:8080/tfs/DefaultCollection /new /noprompt WORKSPACE_NAME
    tf workfold /collection:http://server:8080/tfs/DefaultCollection /map $/Server/Path C:\Local\Path
    tf get C:\Local\Path
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-08-28
      • 2017-05-24
      • 1970-01-01
      • 2021-01-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-17
      相关资源
      最近更新 更多