如何在vs代码中设置Team Foundation Server存储库? [英] How to set up the Team Foundation Server repository in vs code?

查看:51
本文介绍了如何在vs代码中设置Team Foundation Server存储库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将 Visual Studio代码1.26.1 用于有角度的项目.

I'm using visual studio code version 1.26.1 for angular projects.

现在我正在使用源代码管理GIT.但是我想将其更改为Team Foundation Server.

Right now I'm using source control GIT. But I would like to change this to Team Foundation Server.

这样我已经安装了Visual Studio Team Services.之后,我做了以下事情:

So that I have installed the Visual Studio Team Services. Once after that, I have done the following things:

  1. 打开文件->偏好设置->设置

在用户设置中添加以下几行

Add the following lines to your user settings

{
  "tfvc.location": "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Enterprise\\Common7\\IDE\\CommonExtensions\\Microsoft\\TeamFoundation\\Team Explorer\\tf.exe",
"tfvc.restrictWorkspace": true

}

打开本地文件夹(存储库),从View->命令面板 ...,输入团队登录

Open a local folder (repository), From View -> Command Pallette ..., type team signin

当我从命令面板中选择登录时,出现以下错误

When I select the sign in from command palette I got the following error

(team) No Team Services or Team Foundation Server repository configuration was found. Ensure you've opened a folder that contains a repository. 

如何设置Team Foundation Server存储库.我是否需要卸载 GIT 才能使用 TFS ?

How to set up the Team Foundation Server repository. Do I need to uninstall the GIT for use the TFS?

推荐答案

您需要打开一个包含本地TFVC工作区的文件夹.有关详细信息,请参见此链接: Team Foundation版本控制(TFVC)支持.

You need to open a folder containing a Local TFVC Workspace. Refer to this link for details: Team Foundation Version Control (TFVC) Support.

它支持使用Visual Studio(通过tf.exe)或JetBrains IDE和Eclipse(通过Team Explorer Everywhere命令行客户端)创建的工作区

It supports workspaces created with Visual Studio (via tf.exe) or the JetBrains IDEs and Eclipse (via the Team Explorer Everywhere Command Line Client)

这篇关于如何在vs代码中设置Team Foundation Server存储库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆