Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Connecting to a TFS server closes a Git solution

I'm using Visual Studio 2013 with the new built-in Git support. Our project is managed in TFS 2010, but because of inertia/stubbornness, I use git-tfs for source control. I still use the TFS issue tracker etc.

In VS2012, this worked fine - VS just saw the solution as not being under any supported source control, and let me work with TFS work items just fine. In VS2013 however, the project is detected as being managed under Git. This makes VS's TFS integration pretty much unavailable.

This means that I'm not connected to the team project when working on my solution. When I connect to TFS, the solution gets closed. Vice versa - reopening the Git-managed solution closes any work item queries I had open and disconnects me from TFS.

Is there any way to work around this? Disabling the built-in Git support, or a setting I missed?

like image 545
millimoose Avatar asked Nov 03 '13 22:11

millimoose


People also ask

How to connect my project to TFS?

Select 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 to Clone TFS repository in Visual Studio?

In Visual Studio 2019 version 16.8 and laterOn the start window, select Clone a repository. In the Browse a repository section, select Azure DevOps. If you see a sign-in window, sign in to your account. In the Connect to a Project dialog box, choose the repo that you want to connect to, and then select Clone.


1 Answers

VS Team is aware of the problem :

Allowing users to disable the automatic provider switching is something we're considering. When we added Git support, we thought about Git-TF users and optimized for using the developers wanting to use the Git tools. The side effect is that you can't easily work with the TFS team project.

like image 142
Philippe Avatar answered Sep 17 '22 14:09

Philippe