2014-01-07 220 views
0

我在工作中使用TFS 2012与VS 2012 Ultimate。雇员(谁不在这里工作了)已经在我们的解决方案的一些悬而未决的变化(包含C#,SQL和C++项目),但我们的开发行动已使用撤消他们:Visual Studio解决方案TFS检查

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

+0

更多信息:[有似乎是解决方案的源代码管理信息之间的差异的一些工程项目,并在项目文件(S)的信息(http://stackoverflow.com/questions/16616424 /有-出现将要-A-差异-间的解决方案 - 源控制了信息)。 – LosManos

回答

2

提供的解决方案here似乎工作。以下是我所做的:

  • 解除源代码管理中的所有文件。

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

<SccProjectName>SAK</SccProjectName> 
<SccLocalPath>SAK</SccLocalPath> 
<SccAuxPath>SAK</SccAuxPath> 
<SccProvider>SAK</SccProvider> 
  • 回弹所有文件源控制。

  • 已关闭并重新打开的解决方案。这里

相关问题