TFS更改服务器端口和Visual Studio 2012,出现问题 [英] TFS Change server port and visual studio 2012, problems

查看:140
本文介绍了TFS更改服务器端口和Visual Studio 2012,出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用8080端口在本地网络上正常使用tfs.然后我决定更改端口.我花了几个小时试图对它进行排序.搜索了护目镜以获取修复程序等.我认为我现在可以使用它,但是只有在出现实际问题之后,这才让我徘徊并担心如何从Visual Studio 2012中使用:

I have been using tfs with no problems on local network with port 8080. Then i decided to change the port.... why o why did i bother. I have had a terrible few hours trying to sort it. Searched goggle for fixes etc. I think i now have it working but only after reall problems, this then makes me wander and worried about how to from visual studio 2012:

  1. 具有与tfs的局域网连接:servername:9876
  2. 远程连接:域名:domain.com:9876

两者都映射到PC/笔记本电脑上的相同文件夹和tfs服务器上的相同项目.

both of which map to the same folders on pc/ laptop and same projects on tfs server.

这引起了很多问题,然后我删除了服务器并重新添加了正确的服务器.删除所有缓存和工作区.但是后来我无法映射到它存在的位置.然后即使删除了缓存后也无法创建一个新的工作区.最后,我再次删除了所有内容,在pc上选择了一个新位置,以提取tfs中的解决方案.这有效,但即使在服务器现在为9876的情况下,如果我在记事本中查看解决方案文件,服务器端口仍为8080.基于上述两个问题,我下次应该做什么.甚至我还是应该做以确保一切都干净整洁.

This caused masses of problems, i then delete the server and re added the correct one. Deleted all cache and workspaces. But then i couldnt map to location as it existed. then couldnt create a new worksapce it said it existed even after delteing the cache. In the end i delete all again, chose a new location on pc for to pull down solutions in tfs. This worked but i am afraid if i look at the solution file in notepad the server port is 8080 still even though the server is now 9876. Based on the above 2 questions what should i do next time. Or even should i still do to make sure all is clean and tidy.

我必须有这个错误,因为很难更改服务器的端口号,甚至不能更改服务器名称.

I must have this wrong as it cant be so hard to change the port nunmber of the server or even the server name its self.

谢谢

推荐答案

TFS还会在服务器上注册您的工作区和计算机名称.从命令行运行tf workspaces找出哪个和tf workspace删除它们.那应该解开你.重命名本地计算机(客户端计算机)或映射到本地磁盘上的其他位置将解除对您的阻止.

TFS also registers your workspaces and machine names on the server. Run tf workspaces from the command line to figure out which and tf workspace to remove them. That should unblock you. Renaming your local machine (the client machine), or mapping to a different location on your local disk will unblock you.

对于TFS服务器,您应该在本地和远程使用一个单一的计算机名,或者将它们映射为不同的服务器.使用这两个服务器名称会完全破坏本地缓存,因为API会确定它们实际上是同一台服务器,因为Project Collection GUID和服务器ID匹配.

You should use one single machine name, both locally and remote for the TFS server or map them as if they were different servers. Using both server names completely screws up the local cache, since the API will figure out that they're actually the same server because the Project Collection GUID and the Server ID match.

您甚至可以在hosts文件中使用一行,以始终使用相同的计算机名称.

You could even use a line in your hosts file to be able to always use the same machine name.

我找不到确定的文档来告诉您在所有位置使用相同的名称,但是

I can't find the definitive piece of documentation that tells you to use the same name for all locations, but this blog post comes close. Architecturally, there are no changes between 2010 and 2012.

这篇关于TFS更改服务器端口和Visual Studio 2012,出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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