How to lock files from Team Foundation Server?

user694477 picture user694477 · Apr 6, 2011 · Viewed 11.8k times · Source

I want to find lock files and lock-unlock these files from Team Foundation Server. How can I do that?

Answer

Martin Brown picture Martin Brown · Apr 6, 2011

If you Check out a file by right clicking on it in Source Control Explorer and selecting Check Out For Edit, you should get three options under Lock Type:

  • Unchanged: This allows other users to modify the file and save the changes back to TFS before you have finished with it.
  • Check Out: This completely locks the file so that no one else can modify it.
  • Check In: This allows other people to modify the file, but prevents them from saving the changes back to TFS until you have finished with the file.