How to connect Visual Studio 2019 to TFS?

Allan F picture Allan F · Oct 9, 2019 · Viewed 32.9k times · Source

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?

Answer

Allan F picture Allan F · Oct 9, 2019

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