Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can not connect to tfvc with visual studio code

First of all, I am very new in the programming. I learnt a lot (thanks to my teacher :D) and now I and my 2 friends has a common project. We thought that we could build a webpages with .ASP, jQuery, C#, sql. I am the front-end guy therefore I use Visual Studio Code. We have a common vsts. I downloaded the latest version of visual studio code and the latest version of team services extension, red a lot of documentation that explains how I need to do this. I got this error message: (team) No Team Services or Team Foundation Server repository configuration was found. Ensure you've opened a folder that contains a repository.

Please someone explain me how can I connect. I would appreciate it, if you make a short and fast tutorial video. I can do almost everything from documentations or tutorials, but now, I really don't know where I am.

Thanks your help in advance! <3

like image 304
vaciechan Avatar asked Dec 19 '25 15:12

vaciechan


1 Answers

First you should use the official Visual Studio Team Services Extension for Visual Studio Code which released by Microsoft.

It supports both TFVC and GIT version control type.

Clone your Git repository

With Git, the extension uses the remote origin of your repository to determine how to connect to Team Services (or your Team Foundation Server), in most cases you will need to have a Git repository already cloned locally. If you intend on cloning an existing repository, do so before proceeding. If you do not have a Git repository cloned locally but already have a Team Services account (or a Team Foundation Server instance), you may create a local repository (via git init) and once you set the "origin" remote for that local repository, the extension will detect the change to the remote and attempt to contact the Team Services account (or Team Foundation Server).

Create your TFVC workspace

With TFVC, the extension uses information about the current workspace to determine how to connect to Team Services (or your Team Foundation Server). Workspaces can be created using the Visual Studio IDE, Eclipse or with the JetBrains IDEs (e.g, Android Studio, IntelliJ).

Note: At this time, you will need to have a local TFVC workspace already available on your local machine. More information about the difference between the two types (and how to determine which one you're using) can be found here.

You could also take a look at below videos to help get you started using the extension quickly:

  • Set up the Team Services extension for Visual Studio Code - If you haven't used the extension before, this video will show you how to set it up, create a personal access token and get up and running.
  • Walkthrough of the Team Services extension for Visual Studio Code - This is a walkthrough of most of the features of the Team Services extension.
  • TFVC Source Code Control for Visual Studio Code - This video shows you how to set up the TFVC support on Windows and demonstrates much of the functionality available for Team Foundation Version Control.

Above is for windows machine, if you are working on Mac, please take a look at this answer.

like image 135
PatrickLu-MSFT Avatar answered Dec 22 '25 08:12

PatrickLu-MSFT



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!