远程访问 Team Foundation Server 2010

发布于 2024-11-16 01:41:47 字数 206 浏览 0 评论 0原文

我们是四个位于不同地点(彼此半径 100 公里)的开发人员,尝试在软件开发项目上进行合作。

我们希望在一台计算机上安装 Team Foundation Server 2010(我们都使用 Windows 7),并将其用作我们的中央源代码存储库和工作项管理。

但是,我们似乎无法将 TFS 配置为接受删除连接(通过 Visual Studio)。可以这样使用TFS吗?

We are four developers in different locations (in a 100 km radius of each other) tryint o collaborate on a software development project.

We would like to install Team Foundation Server 2010 on one of our machines (we are all using Windows 7) and use that as our central source code repository and work items management.

However we cannot seem to be able to configure TFS to accept remove connections (through Visual Studio). Is it possible to use TFS in this manner?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

满天都是小星星 2024-11-23 01:41:47

TFS 只是一堆 Web 服务,应该设置为开箱即用的远程访问。

您可能需要配置的东西。

  1. 确保 Windows 防火墙允许 TFS 接受端口 8080 上的传入请求(TFS 安装可能会为您执行此操作)

  2. 配置您的路由器以使用“端口转发”,以便将来自互联网到端口 8080 的请求路由到安装了 TFS 的计算机。

  3. 您的 ISP 可能会动态分配 IP 地址,因此您可能需要注册动态 DNS 服务 例如 NO-IP.com。 (检查您的路由器支持哪些)

一旦完成此操作,您就应该可以启动并运行。

我确信其他人会建议您放弃 TFS 并使用 DVCS,例如 GIT 或 Mercurial,他们有道理!当另一个系统可能更容易启动和运行时,您应该考虑是否值得付出努力让 TFS 以这种方式工作。

TFS is just a bunch of web services and should be set up for remote access out of the box.

Things you'll probably need to configure.

  1. Make sure that the windows firewall is allowing TFS to accept incoming requests on port 8080 (the TFS install may do this for you)

  2. Configure your router to use "Port Forwarding" so that requests from the internet to port 8080 are routed to the machine with TFS installed.

  3. Your ISP probably allocates IP addresses dynamically so you might need to sign up for a Dynamic DNS service such as NO-IP.com. (check which ones are supported by your router)

Once you've done this then you should be up and running.

I'm sure others will suggest that you ditch TFS and use a DVCS such as GIT or Mercurial, they have a point! You should consider if it's worth the effort of getting TFS to work in this way when another system might be easier to get up and running.

冷月断魂刀 2024-11-23 01:41:47

TFS 非常适合这种类型的场景,并且无论您是否使用 DVCS,您仍然需要配置访问权限。您不需要设置代理。即使连接速度较慢,TFS 也非常快。如果您与 TFS 不在同一域中,则需要记住 3 件事:

  1. 让 TFS 管理员使用为您设置的域帐户来设置您的 TFS 权限。如果您没有域帐户,请设置一个并使用它。如果没有域,则创建一个工作组帐户或本地 TFS 服务器帐户。
  2. 将您的域(或工作组或本地 TFS 服务器)帐户凭据手动添加到 Windows 凭据存储中,否则 TFS 会一直困扰您登录,这很痛苦。确保在用户名中包含域(或工作组或本地计算机名称),格式如下:MyDomainOrMachineOrWorkgroup\MyUserName。开头没有反斜杠,结尾没有反斜杠。
  3. 您需要直接使用 IP 进行连接或将条目添加到主机文件 (C:\Windows\System32\drivers\etc\hosts)。对于那些从未进入过此文件的人来说,“etc”实际上是目录名称,而不仅仅是我说的“等等”。那里的条目告诉您,当您输入像 mytfs.mydomain.com 这样的地址时,它应该转到 IP 等。就这样。

TFS works just fine for this type of scenario and whether you use a DVCS or not you're still going to have to configure access. You don't need to set up proxies. TFS is extremely fast even over a slow connection. The 3 things you need to remember if you're not on the same domain as the TFS are:

  1. Have the TFS administrator set up your TFS rights using a domain account set up for you. If you don't have a domain account set one up and use it. If there's no domain then create a workgroup account or a local TFS server account.
  2. Add your domain (or workgroup or local TFS server) account credentials manually to the Windows credential store or TFS will keep bugging you to login and that's a pain. Make sure you include the domain (or workgroup or local machine name) in the user name in this format: MyDomainOrMachineOrWorkgroup\MyUserName. No backslash at the beginning, no backslash at the end.
  3. You need to either use the IP directly to connect or add an entry to your hosts file (C:\Windows\System32\drivers\etc\hosts). For those that haven't ever gone into this file the "etc" is actually the directory name not just me saying "and so on". The entries there tell you that when you type an address like mytfs.mydomain.com it should go to IP such and such. That's all.
云之铃。 2024-11-23 01:41:47

@Nigel 我们在远程服务器上有 TFS,在我的工作场所具有本地代理。相对于现场开发人员的数量,我们的互联网连接速度相当慢。与本地服务器相比,TFS 在此配置中的性能极差。我们的解决方案可以下载数百 MB(其中有几个分支)。检查版本历史记录既缓慢又痛苦。检索搁置集既缓慢又痛苦。在 VS2010 或 VS2008 上检查是缓慢而痛苦的。幸运的是,VS2012 是异步执行此操作的,因此签入并没有那么糟糕,但当操作完成时,您最终会得到一个模式对话框。

总而言之,我想说与 SVN 相比,体验很差,更不用说 DVCS 了。

@Nigel We have TFS on a remote server with local proxy at my workplace. Our internet connection is quite slow relative to the number of developers on site. TFS has extremely poor performance in this configuration compared to having the server local. Our solutions can be several hundred MB to download (of which there are a few branches). Checking version history is slow and painful. Retrieving shelvesets is slow and painful. Checking in on VS2010 or VS2008 is slow and painful. Fortunately VS2012 does this asynchronously so checking in is not so bad but you will eventually get a modal dialog when the op is complete.

All in all, I would say a poor experience compared to SVN let alone DVCS.

俏︾媚 2024-11-23 01:41:47

您可以使用 AnyDesk(版本 5.2+),它允许您在客户端之间建立 TCP 连接。

我用它通过互联网将我的客户端 PC 连接到 Team Foundation Server (TFS)。服务器和客户端位于 NAT 后面。我将本地和远程端口设置为“8080”,并且可以使用客户端上的以下地址从客户端连接到服务器:“http ://localhost:8080/tfs/'

参考:TCP 隧道-AnyDesk

you can use AnyDesk (version 5.2+) which allow you to set up TCP connection between clients.

I used it for connecting my client PC to a Team Foundation Server (TFS) over the internet. The server and client are behind NAT. I set the local and remote ports to '8080' and I can connect to server from client using this address on client: 'http://localhost:8080/tfs/'

Reference: TCP-Tunneling-AnyDesk

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文