更改 TFS 工作区的计算机名称 [英] Change computer name for a TFS Workspace

查看:32
本文介绍了更改 TFS 工作区的计算机名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的系统管理员重命名了我的电脑.因此,原来的MyLaptop2"现在只是MyLaptop".

My System Administrator renamed my computer. So where it was "MyLaptop2" it is now just "MyLaptop".

所以现在我所有的源代码控制绑定和检出的文件都在寻找带有MyLaptop2"的工作区.

So now all my source control bindings and checked out files are looking for a workspace with "MyLaptop2".

有没有办法将该工作区重定向到我重命名的(但仍然相同)的计算机?

Is there a way to redirect that workspace to my renamed (but still the same) computer?

推荐答案

这个在 Visual Studio 开发人员命令提示符中运行的命令成功了:

This command run in the Developer Command Prompt for Visual Studio did the trick:

tf workspaces /updateComputerName:MyOldComputerName /s:"http://MyServer:8080/tfs/MyCollection"

它必须在我想要分配工作区的计算机上运行(这就是它获取新计算机名称的方式.

It had to be run from the computer I wanted to assign the workspace to (that is how it gets the new computer name.

这篇关于更改 TFS 工作区的计算机名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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