彻底删除一个项目中的源代码管理信息(VSS6.0)

来源:互联网 发布:以太网调试软件 编辑:程序博客网 时间:2024/04/30 12:15

今天在打开一个别人的程序的时候,老是提示我要连接源代码管理服务器,这个程序用到的源代码服务器我当然连接不上,看着很不爽,就开始删除源代码管理信息。

在删除了解决方案目录、各个项目目录下的:
mssccprj.scc 、工程名.vssscc、vssver.scc 、项目名.csproj.vspscc
这四类文件后,打开项目仍然报没删除干净,报下面错误。

The solution appears to be under source control, but its binding information cannot be found. It is possible that the MSSCCPRJ.SCC file or another item that holds the source control settings for the solution, has been deleted. Because it is not possible to recover this missing information automatically, the projects whose bindings are missing will be treated as not under source control.

再去每个项目文件 项目名.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"

OK,这个世界清静了,每次打开解决方案,不会都看到烦人的提示源代码信息了。

整理一下,要删除VSS6 的源代码管理信息,
我们要删除解决方案目录下,和各个项目目录下的 以下四类文件:
mssccprj.scc 、工程名.vssscc、vssver.scc 、项目名.csproj.vspscc
同时要修改 项目名.csproj 文件,把其中的VSS配置信息删除,即可。

原创粉丝点击