1

我们已将多项目解决方案从 VSS 移至 TFS 2012。我们已从解决方案中删除了所有scc文件,但在打开解决方案时,我们仍会收到有关项目缺少源代码控制文件的错误消息。从 TFS 源代码管理资源管理器打开解决方案时,VS2010 会给出错误消息,但会在源代码控制下打开解决方案。当直接从本地 .sln 文件打开解决方案时,它会给出错误消息并在没有源代码控制的情况下打开解决方案。

有任何想法吗?我们需要对 csproj 和 sln 文件进行更新以删除对 VSS 的引用吗?

4

2 回答 2

3

As is said in the previous answer, you could remove VSS bindings from menu
File->Source Control->Change Source Control... and then click Unbind option. If you can't open the solution on Visual Studio you could solve this by editing the solution file and projects files as well as deleting the .scc files.

Delete the .scc files.

Open .sln file: You need to remove entire section GlobalSection(SourceCodeControl)
example:

GlobalSection(SourceCodeControl) = preSolution
        SccNumberOfProjects = 
        SccLocalPath0 = .
        SccProjectUniqueName1 = 
        SccLocalPath1 = .
        SccProjectFilePathRelativizedFromConnection1 = 
        SccProjectUniqueName2 = 
        SccLocalPath2 = .

EndGlobalSection

Under the section (if exists):

ProjectSection(WebsiteProperties) = preProject

removed the following 4 lines:

SccProjectName = ""
    SccAuxPath = ""
    SccLocalPath = "."
    SccProvider = "MSSCCI:Microsoft Visual SourceSafe"

save the .sln file

For each project file (.vbproj, .csproj, ...) Remove following tags:

<SccProjectName>SAK</SccProjectName>
<SccLocalPath>SAK</SccLocalPath>
<SccAuxPath>SAK</SccAuxPath>
<SccProvider>SAK</SccProvider>

save the project file.
Now try to open the solution with visual studio, the SourceControl Binding should it be removed.

于 2013-06-10T18:03:44.443 回答
1

使用文件-> 源代码管理-> 更改源代码管理。

于 2013-05-22T21:06:53.283 回答