Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to update TFS workspace after computer name changes?

I renamed my computer name, and now my TFS workspace is broken in Visual Studio 2012.

When I type:

tf workspaces /computer:ABOTONJIC-PC /owner:* /format:detailed 

Workspace  : ABOTONJIC-PC Owner      : [email protected] Computer   : ABOTONJIC-PC Comment    : Collection : netuse.visualstudio.com\DefaultCollection Permissions: Private Location   : Local File Time  : Current 

But I need to have :

Owner      : [email protected] Computer   : NEW-PC 

Then I try:

tf workspaces /updateComputerName:ABOTONJIC-PC /collection:netuse.visualstudio.com/DefaultCollection 

No workspace matching *;[email protected] on computer NEW-PC found in Team Foundation Server netuse.visualstudio.com/DefaultCollection. 

So my question are :

  1. How to update computer name in my workspace?
  2. Why TFS still shows "[email protected]" in workspace although there is new email registered as "[email protected]"?
like image 315
Jalle Avatar asked Apr 25 '13 13:04

Jalle


People also ask

How do I change TFS workspace?

Go in to manage Workspaces and click edit. On the edit workspace window select the one you want to change. Then click remove.

How do I change my workspace name in Windows?

Press Shift+F10 to display the workspace button's pop-up menu. Press the Down Arrow key to select the Rename item, then press Return. The button becomes a text field. Edit the workspace's name in the text field.

How do I change the owner of TFS workspace?

If you want to change only one workspace you can go with a developer command prompt to worspace folder, digit tf worksspace to open the UI to edit workspace settings, press advanced and then change the username from there. Figure 1: Change workspace owner.

What is the command line statement to edit workspace settings in TFS?

To make the current directory a working folder for an existing workspace on your computer, type tf workspace workspacename, where workspacename is the name of the existing workspace. The Edit Workspace dialog box appears.


1 Answers

I installed Sidekicks. It did not work for this issue, but this did:

C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE>tf workspaces /updateComputerName:OldComputerName /s:"https://tfsServerName" 
like image 92
J Brune Avatar answered Sep 20 '22 14:09

J Brune