- Download and install Team Foundation Power Tools.
- Open up the Visual Studio command prompt
- Navigate to the directory on the file system that TFS is mapped to. If you don’t do this you’ll get an “Unable to determine the workspace” error when you try to roll back
- Make sure everything else is checked in or shelved
- run tfpt rollback to bring up the interface.
- Choose the changesets you want to rollback
- Check in the new versions of the files you rolled back
The big disadvantage of the tool is that it will want to refresh everything in your workspace before you can merge. I got around this issue by creating a new workspace just for the rollback which mapped directly to the place in the source tree where the affected files were.
If you need help to figure out which changesets to roll back, I find the code review tool in the free Team Foundation Side Kicks add-in very helpful.