How to Work Offline

- J.D. Meier, Jason Taylor, Alex Mackman, Prashant Bansode

Offline working is not supported natively by TFS Version Control.

To work offline, you need to use the following strict workflow:
  1. Manually remove read-only flags. By default, all files in the workspace that have not been checked out are marked as read-only. When you work without a server connection, you must manually remove the read-only flag from files before editing or deleting them. To do this, right-click the file in Windows Explorer, click Properties, clear the Read-only check box, and then click OK. Alternatively, you can use the DOS command attrib -r
  2. Edit files. You can now edit any files for which you have removed the read-only flag.
  3. Add or delete files. You can add or delete files for which you have removed the read-only flag. Do not rename files, because the TFPT online tool cannot distinguish a rename from a deletion paired with an add operation. Note: You must specify an option to the TFPT online command to get it to look for deletions because this is a more time-consuming operation.
  4. Run the TFPT online command. When you are back online, run the TFPT online command by typing TFPT online at the command line. This command scans your workspace for writable files and determines what changes should be pended on the server. If you have deleted any files, use the /delete switch. This tells the tool to scan for deleted files in your local workspace as well. The tool then displays the online window from which you can choose which changes to pend into the workspace.

Important: You must not rename any files while you are offline.

Additional Resources

Last edited Jul 31, 2007 at 1:18 PM by prashantbansode, version 22

Comments

wesmacdonald Mar 2, 2007 at 10:56 PM 
If I know I have work to do disconnected I "check-out" all files for my project since TFS only checks in files that have actually changed when I reconnect. I use Excel to bring the Work Item information offline.