删除VS.net解决方案中的vss绑定信息(转自jxufewbt的专栏)
2。由于打开项目还是有错误,我再网上有寻找了手工解决方案:
a. 在删除了解决方案目录、各个项目目录下的:
mssccprj.scc 、工程名.vssscc、vssver.scc 、项目名.csproj.vspscc
b. 再去每个项目文件 项目名.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 = \u0022$/cms/WEBS\u0022,\u0020XJAAAAAA
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 = \u0022$/MonyBank\u0022,\u0020XCBAAAAA
SccLocalPath9 = MonyBank
CanCheckoutShared = false
SccProjectEnlistmentChoice9 = 2
EndGlobalSection
“SourceCodeControl”这个单词引起了我的注意,他不就是源码控制吗,我把这段从sln里面删除,再打开,正常了。
出处:http://jillzhang.cnblogs.com/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。