2014-01-07 61 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> 
  • 回彈所有文件源控制。

  • 已關閉並重新打開的解決方案。這裏

相關問題