I have a solution that contains projects which are contained in several Git repositories. The .sln
file is in one of the repos. It basically looks like this:
Repo1
Solution.sln
ProjectA
Repo2
ProjectB
ProjectC
Using the Git source control provider that comes with Visual Studio 2015 kind of works.
But sometimes when I switch the active Git repository using the “Connect” pane in Team Explorer (Ctrl+Alt+F4), Visual Studio will close the solution, but sometimes it will not.
How can I stop Visual Studio from closing the solution?
Team Explorer makes an assumption that your .sln is contained in one repo. Imagine what would happen if someone clones just Repo1 but not Repo2, or clones them into different relative paths than you expect.
In your situation, I would argue that you ought to either
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With