手动取消vss源代码绑定

在做此操作前,记得先备份哦

1、在删除了解决方案目录、各个项目目录下的:
mssccprj.scc、工程名.vssscc、vssver.scc、项目名.csproj.vspscc


2、再去每个项目文件项目名.csproj文件,我们可以在开头部分看到类似下面的代码:

<CSHARP
 ProjectType="Web"
 ProductVersion="7.10.3077"
 SchemaVersion="2.0"
 ProjectGuid="{2CBB68B7-FE78-4CEF-981B-6A0529A32889}"
 SccProjectName="SAK"
 SccLocalPath="SAK"
 SccAuxPath="SAK"
 SccProvider="SAK"
 >

删除下面的配置信息:
SccProjectName="SAK"
 SccLocalPath="SAK"
 SccAuxPath="SAK"
 SccProvider="SAK"

 

3、修改解决方案文件sln
我在sln文件中无意间看到了下面这段
GlobalSection(SourceCodeControl)=preSolution
 SccNumberOfProjects=10
 SccLocalPath0=.
 CanCheckoutShared=false
 SolutionUniqueID={2A537A3C-4C75-4F48-843F-0266AA767DF8}
 SccProjectUniqueName1=bll\\bll.csproj
 SccLocalPath1=.
 CanCheckoutShared=false
 SccProjectFilePathRelativizedFromConnection1=bll\\
 SccProjectUniqueName2=dal\\dal.csproj
 SccLocalPath2=.
 CanCheckoutShared=false
 SccProjectFilePathRelativizedFromConnection2=dal\\
 SccProjectUniqueName3=doucments\\doucments.csproj
 SccLocalPath3=.
 CanCheckoutShared=false
 SccProjectFilePathRelativizedFromConnection3=doucments\\
 SccProjectUniqueName4=resources\\resources.csproj
 SccLocalPath4=.
 CanCheckoutShared=false
 SccProjectFilePathRelativizedFromConnection4=resources\\
 SccProjectUniqueName5=utils\\utils.csproj
 SccLocalPath5=.
 CanCheckoutShared=false
 SccProjectFilePathRelativizedFromConnection5=utils\\
 SccProjectUniqueName6=http://localhost/cms/webs.csproj
 SccProjectName6=\"$/cms/WEBS\",\ XJAAAAAA
 SccLocalPath6=webs
 CanCheckoutShared=false
 SccProjectEnlistmentChoice6=2
 SccProjectUniqueName7=PGenerator\\PGenerator.csproj
 SccLocalPath7=.
 CanCheckoutShared=false
 SccProjectFilePathRelativizedFromConnection7=PGenerator\\
 SccProjectUniqueName8=PGAnalysis\\PGAnalysis.csproj

SccLocalPath8=.
 CanCheckoutShared=false
 SccProjectFilePathRelativizedFromConnection8=PGAnalysis\\
 SccProjectUniqueName9=http://localhost/MonyBank/MonyBank.csproj
 SccProjectName9=\"$/MonyBank\",\ XCBAAAAA
 SccLocalPath9=MonyBank
 CanCheckoutShared=false
 SccProjectEnlistmentChoice9=2
 EndGlobalSection
“SourceCodeControl”这个单词引起了我的注意,他不就是源码控制吗,我把这段从sln里面删除,再打开,OK,大功告成。

你可能感兴趣的:(手动取消vss源代码绑定)