【问题标题】:Visual Studio solution TFS check inVisual Studio 解决方案 TFS 签入
【发布时间】:2014-01-07 09:38:40
【问题描述】:

我在工作中使用的是 TFS 2012 和 VS 2012 Ultimate。一名员工(不再在这里工作)在我们的解决方案(其中包含 C#、SQL 和 C++ 项目)中有一些待定更改,但我们的 Dev Ops 使用以下方法撤消了这些更改:

tf undo /workspace<the_worskpace> <files> /s<our_TFS_server>

在源代码管理资源管理器中,我可以确认这些未决更改确实已恢复。 我是目前唯一致力于此解决方案的人。没有其他人有待处理的更改。 另一个方面是 .sln 和 .vssscc 文件都已签入。

当我打开解决方案时,我得到:

While attempting to update source control binding information, Microsoft Visual Studio
could not check out the project file, possibly because it is exclusively checked out to
another user. You must check out the project file as soon as possible, to reconcile the 
local changes with the master copy.

然后项目开始初始化,然后开始加载。在这个过程的中间,我得到:

There appears to be a discrepancy between the solution's source control
information about some project(s) and the information in the project file(s).

To resolve this discrepancy it will be necessary to check out the project file(s)
and update them. If the check out fails, however, and the solution is closed without 
saving, you will see this warning again the next time you open the solution.

我已尝试取消绑定/绑定解决方案文件,但没有成功。我也试过http://connect.microsoft.com/VisualStudio/feedback/details/573538/visual-studio-2010-with-tfs-2010-always-checks-out-the-solution-file-when-opening这里提供的解决方案,但我没有

GlobalSection(ExtensibilityGlobals)

在我的 .sln 中。

【问题讨论】:

标签: c# visual-studio-2012


【解决方案1】:

here 提供的解决方案似乎有效。这是我所做的:

  • 从源代码管理中取消绑定所有文件。

  • 从所有.csproj 文件中删除以下行:

<SccProjectName>SAK</SccProjectName>
<SccLocalPath>SAK</SccLocalPath>
<SccAuxPath>SAK</SccAuxPath>
<SccProvider>SAK</SccProvider>
  • 将所有文件重新绑定到源代码管理。

  • 关闭和重新打开的解决方案。

【讨论】:

    猜你喜欢
    • 2017-07-30
    • 2015-11-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-09-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多