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
Answer by user: open and free worked for me. File -> Source Control -> Advanced -> Workspace
This will open a window with title "Manage Workspaces". Tick "Show remote workspaces" which showed the workspace that was blocking on of the .cs file changes. I removed and I am working fine now :)
To expand on some earlier answers, my collection name had some spaces in there. Even if the collection name is surrounded in quotes ("http://1.2.3.4:8080/tfs/My Collection Name"
) you need to replace any space characters with %20
to resolve the name properly (tf workspaces /updateComputerName:MyOldComputerName /s:"http://1.2.3.4:8080/tfs/My%20Collection%20Name"
)
I had to do this in the Developer Command Prompt for VS:
C:\Program Files (x86)\Microsoft Visual Studio 14.0>tf workspace /delete /server:http://tfs.mysite.com:8080/tfs/defaultcollection devshed22;Warren
Vaccano was correct, however, I needed the workspace name after the UpdateCompterName switch. In my case the workspace was the old machine name.
If you don't know your workspace name you can find all workspace names using:
tf workspaces /owner:* /computer:* /server:http://MyServer:8080/tfs/MyCollection
So I ended up with the following.
tf workspaces /updateComputerName:MyOldComputerName MyOldComputerName /s:http://MyServer:8080/tfs/MyCollection
Given below how it worked for me.
Step 1. Go go Visual Studio Command Prompt
Step 2. In above command prompt type command tf workspaces
. This command will show all the workspaces you created in your machine and also the collection name. Look carefully for first line of the result of the command.
Step 3. In same command prompt type command tf workspaces /updateComputerName:OLDCOMPUTERNAME /s:"collection name as shown above"
The OLDCOMPUTERNAME AND COLLECTION NAME ARE VERY IMPORTANT HERE.
If someone don't feel so comfortable with CommandPromt
(like me) This Infographic post can help you . here is the text snippet from the blog:
Click on FILE menu on your Visual Studio 2013. Now click on
Source Control -> Advanced -> Workspaces..
This will open a window with title "Manage Workspaces". It shows the list of workspaces on this computer to which you have access. The list contains 4 columns for:
Add Workspace: If Workspace Manager is empty, probably you didn't added one yet. Click on Add button and put your server/ username/ password and it will list the added one for you.
Update Workspace: Later if you have changed your computer name or anyway you want to update your workspace accordingly, select the workspace you want to edit and click on Edit button; here you can update your workspace details.