我正在尝试将我的项目转移到Git,但我还不太满意。我想使用Git Extensions或Git Source Control Provider,但我不确定它是否适用于AnkhSVN。当然,我只会在解决方案中使用其中一个。
答案 0 :(得分:7)
是的,它可以与其他源代码管理提供商(SCP)合作,但您需要确保您的.sln
文件(解决方案)没有直接声明SCP想要使用的内容。
Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005
Project...
EndProject
Global
GlobalSection(Subversion) = preSolution
SourceControlProvider = Subversion
EndGlobalSection
...
EndGlobal
同时检查您的项目文件(.proj
):
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
...
<SccProjectName>Subversion</SccProjectName>
<SccLocalPath>Subversion</SccLocalPath>
<SccAuxPath>Subversion</SccAuxPath>
<SccProvider>Subversion</SccProvider>
</PropertyGroup>
...
如果这些文件(.sln
或.proj
)明确提到SCP,那么即使您选择了正确的插件,也可能会遇到问题(请参阅“Using Git with Visual Studio 2010, an introduction”)在选项中:
当您打开解决方案时,Visual Studio仍然会为您的项目使用SVN(即所有git菜单和选项都会立即停用)