Visual Studio 2015 will only use git for version control

I could always create a project / solution and add it to the original control, and it will be added to TFS. Something has changed over the past few months, and when I create a new project / solution in Visual Studio 2015 Enterprise, it automatically uses git, although the version control plugin is installed in TFS. I tried Tool> Options> Source Control and returned the plugin back to TFS (VS resets it to git), closed Visual Studio, opened again, and the plugin is still configured for TFS until I add the project / solution to the original control.

If I create a new project and add it to the original control, I do not receive any prompts, it immediately uses git (even if it is installed in TFS). When I get back and look at the Source Control plugin, it was installed on git vs.

We do not use git, source control is TFS2010. Is there a way to do VS, does it give me a choice of control source or just assign it only to use TFS?

+11
source share
4 answers

My colleague faced the same problem. He did not check the "Add to source control system" check box during the initial creation of the project. Selecting "Add a solution to the version control system" in the right-click context menu in the solution explorer adds the project to the local git repository. The decision was

  1. Tools → Options → tab “Source Control” → select “No” in the plugin. (This may close the solution).
  2. Again Tools → Options → Source Control tab → Select VS TFS in the plugin selection.
  3. Go to the root folder of your project and delete the Git folder (it may be hidden - you may need to show it first).
  4. In Visual Studio, connect to the TFS team project.
  5. Try adding a solution to the version control system → the TFS dialog should appear.

I hope this helps someone out there.

+13
source

Assuming you choose Add to Source Control when creating projects. Try connecting to a TFS team project in Team Explorer before creating new projects.

enter image description here

+6
source

I had the same problem after the update. I need to change the “connect selection” to TFS and then reconnect to my TFS instance so that it does not change the default value to GIT. Hope this helps.

Dave

+1
source

I recently had just this problem, and it was due to my connections. On the Team Explorer tab, click on the green plug to go to the connections. Click on the blue "Manage Connections" link and select "Connect to Team Project." If necessary, select your TFS server, make sure that the new project is selected in the right pane, then click "Connect."

Make sure that the steps highlighted by other users above are completed (the .git files and folders are deleted and the Source Control plugin is installed in TFS), and you can right-click the solution and select "Add Solution to Source Control", and you should have the ability to communicate with TFS.

0
source

All Articles