Change computer name for a TFS Workspace

前端 未结 15 1577
青春惊慌失措
青春惊慌失措 2020-12-07 08:57

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

So now all my source control bindings and checked out files

15条回答
  •  青春惊慌失措
    2020-12-07 09:25

    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.

提交回复
热议问题