今天使用tfs命令行创建workspace的时候,反馈说:
The working folder c:\publish\sources is already in use by the workspace ;Administrator on computer
但其实使用tf workspaces 或者tf workspace spacename均不能找到,使用tf workspaces /remove:*也不起作用,tf workspace /delete spacename说找不到这个workspace。。。令人抑郁。
解决:
使用如下命令列出详情,首先可以找到这个workspace了
c:\publish>tf workspaces /server:http://es-srv-vm-02:8080/tfs/educloud /computer:ES-SRV-VM-02 /owner:* /format:Detailed
使用spacename+owner来强制删除
c:\publish>tf workspace /delete /collection:es-srv-vm-02\EduCloud tempWSpace;es-srv-vm-02\Administrator
搞定。