Visual Studio 解决方案 TFS 签入 [英] Visual Studio solution TFS check in

查看:66
本文介绍了Visual Studio 解决方案 TFS 签入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在工作中使用 TFS 2012 和 VS 2012 Ultimate.一名员工(不再在这里工作)对我们的解决方案(其中包含 C#、SQL 和 C++ 项目)进行了一些未决更改,但我们的开发运营人员已使用以下方法取消了这些更改:

tf undo/workspace<文件>/s

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

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

尝试更新源代码管理绑定信息时,Microsoft Visual Studio无法检出项目文件,可能是因为它专门检出到另一个用户.您必须尽快签出项目文件,以协调使用主副本进行本地更改.

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

解决方案的源代码管理之间似乎存在差异有关某些项目的信息和项目文件中的信息.要解决此差异,需要检查项目文件并更新它们.但是,如果结帐失败,并且解决方案没有关闭保存,下次打开解决方案时会再次看到此警告.

我已经尝试解除绑定/绑定解决方案文件,但是没有用.我也试过这里提供的解决方案 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 中.

解决方案

提供的解决方案 此处 似乎有效.这是我所做的:

  • 从源代码管理中解除所有文件的绑定.

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

<块引用>

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

  • 将所有文件重新绑定到源代码管理.

  • 已关闭并重新打开的解决方案.

I'm using TFS 2012 with VS 2012 Ultimate at work. An employee (who is not working here anymore) had some pending changes in our solution (which contains C#, SQL and C++ projects), but our Dev Ops has undone them using:

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

In Source Control Explorer I can confirm that those pending changes were indeed reverted. I'm the only one working on this solution at the momment. No one else has pending changes. Another aspect is that both the .sln and the .vssscc files are checked in.

When I open the solution, I get:

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.

Then the projects start initializing and then start loading. In the middle of this process I get:

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.

I've tried unbinding / binding the solution file, but that didn't work. I've also tried the solution provided here http://connect.microsoft.com/VisualStudio/feedback/details/573538/visual-studio-2010-with-tfs-2010-always-checks-out-the-solution-file-when-opening but I don't have

GlobalSection(ExtensibilityGlobals)

in my .sln.

解决方案

The solution provided here seems to work. Here is what I've done:

  • Unbound all files from source control.

  • Deleted the following lines from all .csproj files:

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

  • Rebound all files to source control.

  • Closed and reopened solution.

这篇关于Visual Studio 解决方案 TFS 签入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆