1,打开vs下的"开发人员命令提示"
2,按下面格式输入命令:tf workspaces 查看, 假设显示如下:
C:\Program Files (x86)\Microsoft Visual Studio 11.0>tf workspaces
Collection: http://almtfs:8080/tfs/%E9%80%9A%E5%85%B3%E9%A1%B9%E7%9B%AE /user-pc
Workspace Owner Computer Comment
--------- ------ -------- -----------------------------------------------------
USER-PC 彭国秋 USER-PC
Collection: http://almtfs:8080/tfs/tos%20project
Workspace Owner Computer Comment
--------- ------ -------- -----------------------------------------------------
USER-PC 彭国秋 USER-PC
3、执行如下(注:updatecomputername为当前机器名):
tf workspaces /Collection:http://almtfs:8080/tfs/tos%20project /updateComputerName:USER-PC