【问题标题】:error with TFS in VS code: "Unable to validate the collection assuming 'DefaultCollection'"VS 代码中的 TFS 错误:“无法验证集合,假设为‘DefaultCollection’”
【发布时间】:2018-03-16 12:24:35
【问题描述】:

我试图在 VS 代码中连接到 TFS。 我正在安装扩展 - “Visual Studio 代码的 Visual Studio 团队服务扩展”。 我将工作区设置为“本地”并成功登录。 我在“用户设置”中添加路径的根,如下所示:

{
"tfvc.location": "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\IDE\\tf.exe",
"tfvc.restrictWorkspace": true,
"window.zoomLevel": 2,   

}

但现在当我尝试运行命令时,例如:

团队:关联工作项

我得到了错误:

无法验证集合假设为“DefaultCollection”

知道有什么问题吗? 也许我错过了任何一步? 谢谢!

【问题讨论】:

    标签: tfs visual-studio-code


    【解决方案1】:

    在我这边经过测试,一切正常。首先确保您已正确设置TFVC support。

    根据错误消息,它似乎与工作区有关。确保您已正确映射工作区。只需尝试重新映射现有工作区或创建新工作区并将源映射到新的本地文件夹,然后再次检查。

    如果这仍然不起作用并且您确定工作区没有任何问题,那么只需尝试在 user settings 中指定 collection 和 team project name像这样:

    {
        "tfvc.location": "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\IDE\\tf.exe",
        "team.remoteUrl": "http://server:8080/tfs/collection",
        "team.teamProject": "TeamProjectName",
        "tfvc.restrictWorkspace": true,
        "window.zoomLevel": 2 
    }
    

    【讨论】:

      猜你喜欢
      • 2020-09-24
      • 2016-06-02
      • 2018-11-11
      • 1970-01-01
      • 2020-09-23
      • 1970-01-01
      • 2018-02-09
      • 2022-06-22
      • 2018-01-07
      相关资源
      最近更新 更多