I noticed the TFS and Ankh (svn) plugins for VS2010 will annotate the .sln
file with a GlobalSection
that associates the solution with the corresponding source control provider. So when opening a solution will automatically tell VS to switch to that SCP. However the git plugin (combination of "git source control provider" and "git extensions for windows") does not do this.
So whenever I open a git solution, VS just uses whatever the last source control provider I was using the previous time I used VS for any solution, so I have to go through the Tools/Options menu and update it manually every time I open a git solution.
Is there a GlobalSection
that will tell VS to use git, or some other way to allow VS2010 to detect that it's a git repo?
You can use this in .sln files
GlobalSection(GitScc) = preSolution
Git-Managed = True
Manager = Git Source Control Provider
EndGlobalSection
Cheers
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.