How to set up the Team Foundation Server repository in vs code?

僤鯓⒐⒋嵵緔 提交于 2021-01-28 06:32:40

问题


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

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

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

  1. Open File -> Preferences -> Settings

  2. 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
    

    }

  3. 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. 

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


回答1:


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

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



来源:https://stackoverflow.com/questions/51938308/how-to-set-up-the-team-foundation-server-repository-in-vs-code

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!