Connect to projects in Team Explorer

Use the Team Explorer tool window to coordinate your code efforts with other team members to develop a project, and to manage work that's assigned to you, your team, or your projects. Team Explorer connects Visual Studio to Git and GitHub repositories, Team Foundation version control (TFVC) repositories, and projects hosted on Azure DevOps Services or an on-premises Azure DevOps Server (formerly known as TFS). You can manage source code, work items, and builds.

Team Explorer connects Visual Studio to Team Foundation version control (TFVC) repositories, and to projects hosted on Azure DevOps Services or an on-premises Azure DevOps Server (formerly known as TFS). You can manage source code, work items, and builds.

Important

With the recent release of Visual Studio 2019 version 16.8, the new Git version control experience is now on by default. If you'd like to learn more about how it compares with Team Explorer, see the Side-by-side comparison of Git and Team Explorer page.

However, if you prefer to continue to use Team Explorer, go to Tools > Options > Environment > Preview Features and then toggle the New Git user experience checkbox.

How you use Team Explorer to connect to a project depends on the version of Visual Studio 2019 you're using.

In version 16.8 and later

  1. Open Visual Studio 2019.

  2. On the start window, select Clone a repository.

    Screenshot of the Clone a Repository dialog in Visual Studio 2019 version 16.8 and later, for Azure DevOps

  3. In the Browse a repository section, select Azure DevOps.

    Screenshot of the 'Browse a repository' section of the The 'Connect to a Project' dialog box in Visual Studio 2019 version 16.8 and and later

  4. If you see a sign-in window, sign in to your account.

  5. In the Connect to a Project dialog box, choose the repo that you want to connect to, and then select Clone.

    Screenshot of the 'Connect to a Project' dialog box that's generated from Visual Studio 2019 version 16.8 and later

    Tip

    If you don't see a pre-populated list of repos to connect to, select Add Azure DevOps Server to enter a server URL. (Alternatively, you might see a "No servers found" prompt that includes links to add an existing Azure DevOps Server or to create an Azure DevOps account.)

    Next, Visual Studio opens Solution Explorer that shows the folders and files.

  6. Select the Team Explorer tab to view the Azure DevOps actions.

    Screenshot of the 'Team Explorer' dialog box that's generated from Visual Studio 2019 version 16.8 and later

In version 16.7 and earlier

  1. Open Visual Studio 2019.

  2. On the start window, select Clone or check out code.

    Screenshot of the 'Create a new project' window in Visual Studio 2019 version 16.7 and earlier

  3. In the Browse a repository section, select Azure DevOps.

    Screenshot of the 'Clone or check out code' window with the 'Browse a repository' section that lists Azure DevOps in Visual Studio 2019 version 16.7 and earlier

    If you see a sign-in window, sign in to your account.

  4. In the Connect to a Project dialog box, choose the repo that you want to connect to, and then select Clone.

    Screenshot of the 'Connect to a Project' dialog box that's generated from Visual Studio 2019 version 16.7 and earlier

    Note

    What you see in the list box depends on the Azure DevOps repositories that you have access to.

    Visual Studio opens Team Explorer and a notification appears when the clone is complete.

    Screenshot of the Team Explorer window in Visual Studio 2019 version 16.7 and earlier, after clone is complete

  5. To view your folders and files, select the Show Folder View link.

    Screenshot of the Solutions section of the Team Explorer window in Visual Studio 2019 version 16.7 and earlier, after clone is complete

    Visual Studio opens Solution Explorer.

  6. Choose the Solutions and Folders link to search for a solution file (specifically, an .sln file) to open.

    Screenshot of the 'Solutions and Folders' notification from Team Explorer in Visual Studio 2019 version 16.7 and earlier

    If you do not have a solution file in your repo, a 'No Solutions Found' message appears. However, you can double-click any file from the folder menu to open it in the Visual Studio code editor.

Team Explorer Home page in Visual Studio

Tip

If you open Visual Studio and Team Explorer doesn't appear, open it by choosing View > Team Explorer from the menu bar, or by pressing Ctrl+\, Ctrl+M.

Connect to a project or repository

Connect to a project or repository on the Connect page.

Connect page in Team Explorer

To connect to a project:

  1. Open the Connect page by choosing the Manage Connections icon.

    Manage Connections button in Team Explorer

  2. On the Connect page, choose Manage Connections > Connect to a project.

    Connect to a project in Team Explorer

Tip

If you want to open a project from a repo, see Open a project from a repo. If you want to create a new project or add users to a project, see Create a project (Azure DevOps) and Add users to a project or team (Azure DevOps).

See also