我正在使用TFS 2012和VS 2012 Ultimate。一名员工(不再在这里工作)在我们的解决方案(包含C#,SQL和C ++项目)中进行了一些悬而未决的更改,但是我们的Dev Ops使用以下方法撤消了这些更改:
tf undo /workspace<the_worskpace> <files> /s<our_TFS_server>
在Source Control Explorer中,我可以确认那些未完成的更改确实已还原。我是目前唯一致力于此解决方案的人。没有其他人有未决的更改。另一方面是.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 -当我打开但我没有
GlobalSection(ExtensibilityGlobals)
在我的.sln中。
这里提供的解决方案似乎有效。这是我所做的:
取消绑定源控制中的所有文件。
从所有.csproj
文件中删除了以下几行:
<SccProjectName>SAK</SccProjectName> <SccLocalPath>SAK</SccLocalPath> <SccAuxPath>SAK</SccAuxPath> <SccProvider>SAK</SccProvider>
将所有文件绑定到源代码管理。
关闭并重新打开解决方案。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句