导入Visual Studio TFS工作区 [英] Import Visual Studio TFS workspaces
问题描述
有没有办法导入Visual Studio TFS工作区,我有超过30个工作区,我需要将它们导入到新机器上的TFS。
谢谢
Is there a way to import Visual Studio TFS workspace, I have over 30 workspace and I need to import them to a TFS on new machine. Thanks
推荐答案
如果要克隆工作区的结构但是离开旧的,单独运行
If you want to clone the structure of your workspaces but leave the old ones alone, run
tf workspace /server:yourserver /new NewName /template:OldName;OldOwner
http://msdn.microsoft.com/en-us/library/tzy14b58.aspx
如果你想永久将工作区从一台机器迁移到另一台机器,运行...
If you want to permanently migrate your workspaces from one machine to another, run...
tf workspaces /server:yourserver /updatecomputername:OldComputerName
http://msdn.microsoft.com/en-us/library/54dkh0y3.aspx
。然后将所有文件从旧框移动到新框。如果您无法使用相同的路径,则必须更新工作区定义。
...then move all your files from the old box to the new one. If you're unable to use the same paths, you'll have to update the workspace definitions.
这篇关于导入Visual Studio TFS工作区的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!