how to remove TFS workspace mapping for another user

后端 未结 9 1501
梦如初夏
梦如初夏 2020-12-04 19:13

I am using Visual Studio 2010. Some months back I was using some \'ABC\' TFS user to connect to TFS and mapped some folders on my local drive. Now my previous user \'ABC\' i

9条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-04 19:52

    I had a similar issue and could not install sidekick because I'm running VS 2k17.

    I was unable to delete the workspace because it kept telling me it could not find the workspace.

     tf workspaces /computer:* /owner:* 
    

    This would list all of my workspaces and the owners. So I would try

     tf workspace /delete myWorkSpaceName;Bob Smith
    
    
     TF14061:  The workspace myWorkSpaceName;Bob Smith does not exist.
    

    That is the exact workspace and owner name I was getting in the original workspace listing above.

    The solution was to ask for xml format

    tf workspaces /computer:* /owner:* /format:xml > c:\temp\workspaces.xml
    

    (Note: Output to file is optional, but recommended)

    This gives workspace owner aliases and one of them was a long name with a guid and the account email. This finally worked:

    tf workspace /delete myWorkSpaceName;aabe3ec12-1254-4956-b1ee-3fb26506931e\bsmith@myDomain.onmicrosoft.com
    

    It asked for a confirmation and finally deleted my orphaned workspace.

提交回复
热议问题