如何摆脱“您尝试打开的解决方案绑定到源代码控制"信息 [英] How to get rid of "The solution you are trying to open is bound to source control" message
问题描述
我有一个从源代码控制的解决方案复制的 Visual Studio 解决方案文件.我不希望它受到源代码控制,当我打开它时,我收到消息:您尝试打开的解决方案绑定到源代码控制
I have a Visual Studio solution files copied from a source controlled solution. I don't want it to be source controlled and when I open it I get the message: the solution you are trying to open is bound to source control
我删除了 .vssscc 文件,但仍然收到消息.我怎样才能摆脱它?
I deleted the .vssscc files but still get the message. How can I get rid of it?
谢谢.
推荐答案
您需要通过删除以下 GlobalSection 来清理解决方案文件 (.sln):
You need to clean the solution file (.sln) by removing the following GlobalSection:
GlobalSection(TeamFoundationVersionControl) = preSolution
SccNumberOfProjects = 2
SccEnterpriseProvider = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C}
SccTeamFoundationServer = http://example.com/tfs/defaultcollection
SccLocalPath0 = .
/// --- more solution specific stuff omitted --- ///
EndGlobalSection
并且您需要从每个项目文件(C# 项目的 .csproj)中删除源代码控制引用:
and you need to remove the source control references from every single project file (.csproj for C# projects):
...
<SccProjectName>SAK</SccProjectName>
<SccLocalPath>SAK</SccLocalPath>
<SccAuxPath>SAK</SccAuxPath>
<SccProvider>SAK</SccProvider>
...
这篇关于如何摆脱“您尝试打开的解决方案绑定到源代码控制"信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!