将vs代码连接到本地服务器上的tfs

时间:2019-01-01 05:47:54

标签: tfs visual-studio-code angular6 vscode-settings azure-repos

我正在尝试连接tfs,我执行了以下步骤:

  1. 安装vsc
  2. 安装Azure Repo
  3. 安装检出tfs文件

这是我的setting.json代码

   {
    "tfvc.restrictWorkspace": true,
    "tfvc.location": "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\IDE\\tf.exe",
    "editor.renderControlCharacters": true,
    "git.enableSmartCommit": true,
    "git.enabled": false,
    "checkouttfs.tflocation": "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\IDE\\tf.exe",
    "team.showWelcomeMessage": false,
    "workbench.colorTheme": "Visual Studio Light"
}

但是当我单击团队->登录时,出现此错误:

  

(团队)配置的TF版本不满足最低要求   版。使用某些命令可能会遇到错误或限制   直到您升级。最低版本:14.102.0

现在我该怎么办? 我的tf版本是1.0.1 我的vsc版本是1.30

2 个答案:

答案 0 :(得分:0)

我发现将vs代码连接到tf的问题应该安装Visual Studio 2017或更高版本。我的视觉工作室是2015年,tf.exe的版本下降了。

答案 1 :(得分:0)

您的下一步将是:

  1. 通过https://code.visualstudio.com/Download下载Visual Studio 2017或2019。
  2. 程序完成几个小时的安装后,这会将TF.exe更新到至少15.129版本。#####
  3. 然后将您的setting.json更新为 “ tfvc.location”:“ C:\ Program Files(x86)\ Microsoft Visual Studio \ 2017 \ Community \ Common7 \ IDE \ CommonExtensions \ Microsoft \ TeamFoundation \ Team Explorer \ TF.exe”,

    OR

    “ tfvc.location”:“ C:\ Program Files(x86)\ Microsoft Visual Studio \ 2019 \ Community \ Common7 \ IDE \ CommonExtensions \ Microsoft \ TeamFoundation \ Team Explorer \ TF.exe”, “ tfvc.restrictWorkspace”:true,

最后,您将不再看到以下错误消息:“(team)TF的配置版本不符合最低版本。升级之前,您可能会遇到某些命令的错误或限制。最低版本:14.102.0 “