linux - TFS 工作区和工作文件夹在 Linux 上与托管 TFS 发生冲突 (VisualStudio.com)

标签 linux tfs azure-devops

我正在尝试弄清楚如何连接到 TFS 并将存储在托管 TFS(即 Visualstudio.com)上的代码下载到我的 Linux Web 服务器。

我已经安装了TFS命令行客户端(tf.exe)

我运行以下命令:

$ tf workspace -new "My - Workspace" -collection:https://me.visualstudio.com/DefaultCollection -login:user,pass

然后,我列出工作区:

$ tf workspaces

Collection: https://gotmike.visualstudio.com/DefaultCollection/

Workspace            Owner       Computer           Comment

-------------------- ----------- ------------------ -------------
My - Workspace       My Name     ip-xxx-xxx-xxx-xxx

一切看起来都不错...

然后,我尝试运行工作文件夹...

$ tf workfold -map -login:user,pass -server:http://me.visualstudio.com -workspace:"My - Workspace" '$/My - Workspace/My - Workspace' '/home/me/test'

An argument error occurred: The workspace 'My - Workspace' could not be found.

明明在列表​​里怎么找不到?我做错了什么?

最佳答案

/server 标志已弃用,不应用于最近的服务器(具有“项目集合”的服务器,例如 Visual Studio Online。)而是使用 /collection 标志,就像您在第一个示例中所做的那样。然后应该能够在指定的项目集合中找到工作区。

例如:

tf workfold -map -login:user,pass -collection:https://me.visualstudio.com/DefaultCollection -workspace:"My - Workspace" '$/My - Workspace/My - Workspace' '/home/me/test'

关于linux - TFS 工作区和工作文件夹在 Linux 上与托管 TFS 发生冲突 (VisualStudio.com),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21002935/

相关文章:

sql - TFS 2010 备份失败,出现 "The current username failed to retrieve MSSQL Server service account. "

java - 无法通过 azure 管道检索下载的文件

linux - 使用 grep 查找所有电子邮件

linux - Linux 上缺少标准库?

c++ - 为什么 Windows Visual Studio 会损坏 C 样式字符串而 Linux 不会?

visual-studio - 以编程方式拦截和/或操作 TFS/Visual Studio 2010 中的 checkin 注释

tfs - TF30042 : The database is full

azure-devops - Azure DevOps 对发布阶段进行排序

azure-devops - 始终为 : true behaviour issue in Azure DevOps pipelines

java - 如何打印所有包HTTP