Use Team Foundation Power Tools to Work Offline

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

Offline working is not supported natively by TFS. If you want to work offline, you must adhere to the following strict workflow:
  1. Manually remove read-only flags.
  2. Edit files.
  3. Add or delete files
  4. Run the TFPT online command.

Each of these steps is described in detail below.

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

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 flags 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 operation 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, as 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.

Additional Resources

Last edited Jul 26, 2007 at 9:06 AM by prashantbansode, version 6

Comments

No comments yet.