Visual Studio 2012项目丢失了与TFS的链接 [英] Visual Studio 2012 project lost link to TFS

查看:97
本文介绍了Visual Studio 2012项目丢失了与TFS的链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,我回到了几个月前正在研究的项目,当我加载该项目时,其中一个项目似乎已经失去了指向TFS中该条目的链接.解决方案资源管理器没有显示锁定图标,但是我仍然在TFS中看到它.

我尝试对源代码控制执行添加操作,但是它说该项目已经存在.

有人对如何解决这个问题有想法吗?

我试图避免重新映射,因为有几个分支,而且我什至不确定是否可以解决它.

解决方案

您的解决方案丢失了TFS绑定,您可以执行以下操作来修复它.首先在Visual Studio中打开要绑定的解决方案/项目,然后:

  1. 在解决方案资源管理器中突出显示要绑定到Team Foundation版本控制的项目或解决方案.
  2. 在文件"菜单上,单击源代码管理",然后单击更改源代码管理".
    3.在更改源代码管理"对话框中,单击绑定".

MSDN链接

VS 2013的更新(感谢Caad9)-在VS 2013中[至少是极限版]菜单中还有一个附加级别;文件-源代码管理-高级-更改源代码管理...这会弹出对话框

So I came back to a project that I was working on a few months ago, and when I load it one of the projects seems to have lost the link to it's entry in TFS. The solution explorer doesn't show the lock icons for it, but I still see it in TFS.

I tried performing a add to source control but it says that the items already exist.

Anybody have ideas on how to fix this?

I'm trying to avoid remapping because there are a few branches, and I'm not even sure that will fix it.

解决方案

Your solution has lost the TFS binding, you can do the following to fix it. First open the solution/project you wish to bind in Visual studio then:

  1. Highlight the project or solution you wish to bind to Team Foundation version control in Solution Explorer.
  2. On the File menu, click Source Control, and then click Change Source Control.
    3.In Change Source Control dialog box, click Bind.

MSDN Link

Update for VS 2013 (thank you Caad9) - In VS 2013 [Ultimate at least] there's an additional level in the menu; File - Source Control - Advanced - Change Source Control... which brings up the dialog

这篇关于Visual Studio 2012项目丢失了与TFS的链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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