TFS - 移动到新服务器.如何使用新的服务器信息更新解决方案? [英] TFS - Moving to a new server. How to update solutions with new server info?

查看:24
本文介绍了TFS - 移动到新服务器.如何使用新的服务器信息更新解决方案?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

TFS 是在 VM 上设置的,我们有 6 个开发人员正在使用它.我们已经走了一年多了.我们必须将虚拟机移动到新的数据中心,而 IP 地址将发生变化.我们都通过 IP 而不是 HOST 或 DNS 来引用 TFS 服务器(是的,我知道!)

TFS was setup on a VM and we have 6 devs that are using it. We've been going for over a year. We have to move the VM to a new data center and the IP address is going to change. We all referenced the TFS server by it's IP instead of HOST or DNS (yes, i know!)

一切都被硬编码为 IP 地址.我们如何更新本地配置以指向新的服务器 IP?

Everything is hardcoded as the IP address. How do we update the local config to piont to the new server IP?

我在注册表中找到了服务器"条目,并且发现解决方案文件具有硬编码到其中的服务器 IP.

I've found the 'Servers' entries in the registry and I've found that the solution file has the IP to the server hardcoded into it.

是否有一种简单的方法可以在不手动编辑文件/注册表的情况下进行这些更改?

Is there an easy way to make these changes without manually editing the files/registry?

推荐答案

这是我为解决问题所做的工作.

Here is what I have done to solve my issue.

步骤

  1. 在记事本中编辑 EP2.sln.改变来自 SccTeamFoundationServer = http://123.123.123.123:8080/到 SccTeamFoundationServer = http://123.123.123.124:8080/节省.注意:文件将被标记为只读.只需在文件属性中取消选中只读.
  2. 打开 VS(没有打开任何解决方案).查看 -> Team Explorer 3. 右键单击​​服务器节点 (123.123.123.124) 并选择断开连接"
  3. 单击添加现有团队项目"按钮,然后单击服务器"按钮 5. 单击添加"以添加新服务器.输入 IP 地址并保留默认值.单击确定",然后单击关闭"
  4. 从下拉列表中选择新服务器(将标记为您输入的 IP).单击(全选)"复选框,然后单击确定".服务器信息将开始刷新,请等待完成.
  5. 此时,关闭团队资源管理器窗口并打开解决方案.将出现一个对话框有关某些项目的解决方案的源代码管理信息与项目文件中的信息之间似乎存在差异".只需点击确定"并等待解决方案加载.
  1. Edit EP2.sln in notepad. Change from SccTeamFoundationServer = http://123.123.123.123:8080/ to SccTeamFoundationServer = http://123.123.123.124:8080/ Save. Note: file will be marked as read only. Just uncheck Read only in file properties.
  2. Open VS (do not have any solutions open). View -> Team Explorer 3. Right click on the server node (123.123.123.124) and choose 'Disconnect'
  3. Click the 'Add existing team project' button and then click the 'Servers' button 5. Click on 'Add' to add a new server. Enter the IP address and leave the defaults. Click OK and then click 'Close'
  4. From the drop down, choose the new server (will be labeled as the IP you entered). Click the '(Select All)' check box and then click OK. The server information will start to refresh, wait until it's done.
  5. At this point, close Team Explorer window and open the solution. There will be a dialog "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)". Just click OK and wait for the solution to load.

完成.

这篇关于TFS - 移动到新服务器.如何使用新的服务器信息更新解决方案?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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