Kumar19
Kumar19

Reputation: 111

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

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?

Upvotes: 1

Views: 3810

Answers (1)

Eddie Chen - MSFT
Eddie Chen - MSFT

Reputation: 29976

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)

Upvotes: 1

Related Questions