How to automatically switch to TFS when downloading a solution?

I have an annoying problem with version control plugins ... I am using VS2012 and I have some projects on TFS and others on SVN (using AnkhSVN).

When I open the SVN solution, VS smoothly switches to AnkhSVN as a version control plugin, which is great. But then when I open the TFS solution, it does not switch back to TFS ... the most unpleasant effect is that the automatic check does not work. To fix this, I have to unload the solution, change the version control plugin to TFS and reload the solution.

Is this a known issue? Is there any way to fix this?

+6
source share
1 answer

Unable to find a good option. This part of Visual Studio is designed to work with only one version control system at a time, and I understand your pain.

I guess my first question is: why do you both need it, but I think there is some need for it. You can see people with the same problem:

Option 1: Virtualization

Since I have a machine capable of working with VM (Windows 8 with Hyper-V), I will have two virtual machines, one of which is configured for TFS, and the other for SVN. Not elegant, but it will allow you to switch.

Option 2: Regedit

You can change the settings in the registry.

HOW: Change source providers if two or more MSSCCI-compatible providers are installed

Thus, you can have a “key” file for each parameter stored on your desktop, and:

  • Close Visual Studio
  • Run registration key
  • Open solution

While ugly and requires memorization, this would be the best option locally.

Conclusion

There is no good answer, but I think the two options above will lead you there.

+2
source

Source: https://habr.com/ru/post/926594/


All Articles