Vs2003结合VS6进行源代码管理,其同步的痕迹体现在2个地方:
以后缀名分:
*.sln
*.vbproj (vb) / *.csproj (c#)
以C# Web工程(solution中含三个project)为例,可以这样去除源代码和VSS的绑定.
用文本方式分别打开*.csproj 和*.sln文件
1、*.csproj (c#)文件中的榜定信息
原语句
-----------------------------------
<VisualStudioProject>
<CSHARP
ProjectType = "Local"
ProductVersion = "7.10.3077"
SchemaVersion = "2.0"
ProjectGuid = "{878D499B-7807-443E-BDF0-F7E0C3FA45AC}"
SccProjectName = "SAK"
SccLocalPath = "SAK"
SccAuxPath = "SAK"
SccProvider = "SAK"
>
删除语句:
-----------------------------------
SccProjectName = "SAK"
SccLocalPath = "SAK"
SccAuxPath = "SAK"
SccProvider = "SAK"
2、*.sln文件中的关联信息
删除下面的语句段即可
-----------------------------------
GlobalSection(SourceCodeControl) = preSolution
SccNumberOfProjects = 4
SccProjectUniqueName0 = ..\\*\\*.csproj
SccProjectName0 = \u0022$/*\u0022,\u0020UKEBAAAA
SccLocalPath0 = ..\\*
CanCheckoutShared = false
SccLocalPath1 = .
CanCheckoutShared = false
SolutionUniqueID = {30487451-253D-477E-BB08-6781C45C6806}
SccProjectUniqueName2 = */*.csproj
SccProjectName2 = \u0022$/*\u0022,\u0020TEEBAAAA
SccLocalPath2 = ..\\*
CanCheckoutShared = false
SccProjectEnlistmentChoice2 = 2
SccProjectUniqueName3 = */*.csproj
SccProjectName3 = \u0022$/*\u0022,\u0020KYEBAAAA
SccLocalPath3 = ..\\*
CanCheckoutShared = false
SccProjectEnlistmentChoice3 = 2
EndGlobalSection