Visual Studio defaults to Git Source Control on opening TFS Solution

Martin Janik 0 Reputation points
2024-04-03T08:10:38.9933333+00:00

I have multiple solutions stored both in TFS and Git. When I launch the VS as an Administrator, "Start Window" is shown. Then, I select a TFS solution. The VS opens, loads all projects under the TFS solution and when loaded, it automatically starts unloading all projects and loads Git solution. After this, I have to open "Start Window" from VS and select the TFS project again. After VS unloads the Git solution and loads TFS solution everything works just fine.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,617 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 25,716 Reputation points Microsoft Vendor
    2024-04-04T03:56:53.6666667+00:00

    Hi @Martin Janik, 

    Welcome to Microsoft Q&A! 

    Which version of Visual Studio are you using? 

    Please ensure you are connected to TFS in VS.

    Then, open the VS and go to Tools > Option > Source Control > Plug-in Selection > Current source control plug-in: Visual Studio Team Foundation Server.

    User's image

    Besides, please check if there is a .git folder in the source directory. If it exists (it may be hidden), please backup and delete it. 

    Sincerely,

    Anna


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".  Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

     

    0 comments No comments