重新建立 TFS 源代码控制绑定 [英] Re-establish TFS source control bindings

查看:54
本文介绍了重新建立 TFS 源代码控制绑定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在处理大约十二个 Visual Studio 2010 项目,这些项目在 TFS 存储库中进行了版本控制.最近去度假,把电脑的操作系统升级到了Windows 7 64位.

I have about a dozen Visual Studio 2010 projects I've been working on that are versioned in a TFS repository. Recently I went on a vacation and upgraded my computer's OS to Windows 7 64 bit.

我已经重新安装了 Visual Studio,并且可以连接到我的 Team Foundation Server 并查看我的项目...只是我的绑定无法正常工作.大多数情况下,我的文件似乎都没有受到源代码管理,但在几个项目中,我的源代码管理绑定在根文件夹中是正常的,但在项目根目录之外的子文件夹中不起作用.

I've reinstalled Visual Studio, and I can connect to my Team Foundation Server and see my projects...only my bindings aren't working correctly. Most of the time none of my files seem to be under source control, but in a couple of projects my source control bindings are OK in the root folder, but not working in subfolders off the project root.

我已尝试撤消绑定、从源代码管理打开、删除文件夹并获取最新版本.这些都没有解决问题.

I've tried undoing the binding, opening from source control, and deleting the folder and doing a get latest version. None of these has fixed the problem.

对恢复绑定有什么想法吗?

Any thoughts on restoring my bindings?

更新

在我四处寻找之后,我发现在我的无效"项目的路径中似乎有一个额外的文件夹......我不知道它是如何进入那里的,但这似乎正在抛弃我的映射.

After poking around I can see there seems to be an extra folder in the path of my "invalid" projects...I've got no idea how it got in there, but this seems to be throwing off my mappings.

推荐答案

您说您已尝试取消绑定,但是否尝试重新绑定回源代码管理?

You say you've tried undoing the binding, but have you tried rebinding back to source control?

在 Visual Studio 中:

In Visual Studio:

  • 针对问题提出解决方案
  • 在解决方案资源管理器中选择解决方案
  • 选择文件->源代码管理->更改源代码管理
    Visual Studio 2013/2015:文件->源代码控制->高级->更改源代码控制
  • 取消绑定所有已绑定但无法正常工作的项目.
  • 绑定所有现在未绑定的项目.

这篇关于重新建立 TFS 源代码控制绑定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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