user1210140
user1210140

Reputation: 49

TFS 2005. I lost my Workspace mapping. Dont want to lose checked out work

I mistakenly wiped out my workspace mapping to my local folder. No my solutions all say they are not downloaded, but the code is still there of course. I've got worked checked out. How do I make this right, or even can I?

Upvotes: 1

Views: 613

Answers (2)

Jason Williams
Jason Williams

Reputation: 57892

Before you do anything, back up your code - copy it to a folder outside of your mapped workspace folders. That way, if anything goes wrong, you won't lose your code.

The worst case scenario if you do this is then:

  • Fix your mappings and Force get all the code (so you lose your changes)
  • Copy your backup files back over the source code
  • Get locks on your changed files (Either: a) Check out everything, then undo check out, but say "no all" to the question about throwing away changes. This will leave you with locks only on files that have changed) or b) Go Offline (unplug your net cable, run VS, and it'll go offline) then go online (plug in net cable, File > Source Control > Go Online) and TFS should auto discover your chnaged files)

Upvotes: 0

Khh
Khh

Reputation: 2571

Have you tried to remap your workspace like described here?

Upvotes: 0

Related Questions