Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to connect Visual Studio 2019 to TFS?

Visual Studio Professional 2019 looks to be all set for use of Azure DevOps.

We are using Azure DevOps but also have a large code base still in TFS.

I was using Visual Studio 2017 Enterprise (with TFS) but it seemed this was a 90 day trial.

I have now been issued with Visual Studio Professional 2019.

I should be able to connect Visual Studio Professional 2019 to TFS also ?

How do I do this?

like image 462
Allan F Avatar asked Oct 09 '19 05:10

Allan F


People also ask

How do you connect Visual Studio to TFS?

Visual Studio 2015Select the Manage Connections button in Team Explorer to open the Connect page. Choose Connect to Team Project to select a different organization, TFS, or project to connect to. Select the projects to work on. If it's your first time connecting, add TFS to the list of recognized servers.

How do I map a project from TFS Visual Studio 2019?

From Visual Studio, go to the Team Explorer Connect page (Keyboard: Ctrl + 0, C) and then connect to the project. (If the project you want to open is not listed, choose Select Projects and then connect to the project.) Map the project to a folder on your dev machine. Map the workspace and get your code.

Where is TFS path in Visual Studio?

Using Visual Studio it is very easy to navigate to the local path of a source code file. Simply right click the file in Solution explorer and select “Open File Location”.


1 Answers

Richard suggested:

Team | Manage Connections then click on manage connections, from where you can connect to servers. "Connect to a Project" form/dialog ..

thanks for this comment !

i.e. in Visual Studio Pro 2019, the option is "Add Azure DevOps Server" even though wanting to add TFS server.

i.e.

enter image description here

In Visual Studio Pro 2017, it looks like this:

enter image description here

At first I have tried (successfully) File, Source Control menu options. i.e. File | Source Control | Advanced | Open From Server ..

Question then was: "How do I switch Visual Studio Pro 2019 from TFS back to Azure DevOps?"

I have been using Git Gui and Git Bash for working with Azure DevOps so this wasn't so important.

I worked out how to switch between TFS and Azure DevOps projects also via use of this dialog form:

enter image description here

like image 134
Allan F Avatar answered Sep 23 '22 06:09

Allan F