相关疑难解决方法(0)

更改TFS工作区的计算机名称

我的系统管理员重命名了我的电脑.那么它是"MyLaptop2"的地方现在只是"MyLaptop".

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

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

workspace tfs tfs2010

121
推荐指数
6
解决办法
9万
查看次数

计算机名称更改后如何更新TFS工作区?

我重命名了我的计算机名,现在我的TFS工作区在Visual Studio 2012中被破坏了.

当我输入:

tf workspaces /computer:ABOTONJIC-PC /owner:* /format:detailed
Run Code Online (Sandbox Code Playgroud)

Workspace  : ABOTONJIC-PC
Owner      : wrongowner@test.com
Computer   : ABOTONJIC-PC
Comment    :
Collection : netuse.visualstudio.com\DefaultCollection
Permissions: Private
Location   : Local
File Time  : Current
Run Code Online (Sandbox Code Playgroud)

但我需要:

Owner      : realowner@test.com
Computer   : NEW-PC
Run Code Online (Sandbox Code Playgroud)

然后我尝试:

tf workspaces /updateComputerName:ABOTONJIC-PC /collection:netuse.visualstudio.com/DefaultCollection
Run Code Online (Sandbox Code Playgroud)

No workspace matching *;wrongowner@test.com on computer NEW-PC found in Team Foundation Server netuse.visualstudio.com/DefaultCollection.
Run Code Online (Sandbox Code Playgroud)

所以我的问题是:

  1. 如何更新我的工作区中的计算机名称?
  2. 为什么TFS仍然在工作区中显示"wrongowner@test.com",尽管有新的电子邮件注册为"realowner@test.com"?

workspace tfs tf-cli visual-studio-2012

46
推荐指数
5
解决办法
6万
查看次数

标签 统计

tfs ×2

workspace ×2

tf-cli ×1

tfs2010 ×1

visual-studio-2012 ×1