I\'m currently working on a project with TFS source control. We\'ve just gotten in a bug report for an older version of the code, and I need to pull down that version of co
OK, this is a very old question but still one that comes up. An alternative would be to shelve any changes you currently have, then undo changes locally so you are at the most up to date version from TFS, and then do your Get Specific Version. Once you're finished with it you can then get latest (if you're worried about it, you can dump the code you have locally first) and unshelve your changes again.
It's not without risk but given TFS's irritating and outdated workspace model it's about the best you can hope for without going to the trouble of mapping a whole new workspace or other faffing about.
I just found one easy way to do this: Create a new Workspace in TFS pointing to a separate folder, then switchover to this new workspace and do a Get Specific Version here.
Makes sense now, I just hadn't ever tried that.
For making edits to a single file, here's a quick hack from within Visual Studio:
You can create a branch with version by
Then use that branch for fixing the bug and merge back the changes if required or release the branch itself.