26.04.2015 Views

Team Development with Visual Studio Team Foundation Server

Team Development with Visual Studio Team Foundation Server

Team Development with Visual Studio Team Foundation Server

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Additional Resources<br />

• For more informational about lock types, see http://msdn2.microsoft.com/enus/library/ms181419(VS.80).aspx<br />

What lock types does TFS support?<br />

<strong>Team</strong> <strong>Foundation</strong> <strong>Server</strong> provides two types of locks: check-in and checkout locks. A<br />

check-in lock is less restrictive than a checkout lock. When you apply a check-in lock,<br />

users can continue to make local changes to the item in other workspaces. The changes<br />

cannot be checked in until you explicitly remove the check-in lock from the workspace or<br />

you check in the file.<br />

A checkout lock is more restrictive than a check-in lock. When you apply a checkout lock<br />

to a source-controlled file or folder, users can neither check out the file for editing nor<br />

check in pre-existing pending changes. You cannot acquire a checkout lock if an item<br />

currently has any pending changes.<br />

Additional Resources<br />

• For more informational about lock types, see http://msdn2.microsoft.com/enus/library/ms181419(VS.80).aspx<br />

Distributed/Remote <strong>Development</strong><br />

• How do I work offline?<br />

• How do I optimize for distributed team development?<br />

• What is the TFS Version Control proxy?<br />

• How do I optimize TFS Version Control proxy performance?<br />

How do I work offline?<br />

<strong>Team</strong> <strong>Foundation</strong> Version Control does not natively support offline working. If you want<br />

to work offline you must strictly adhere to the following workflow:<br />

1. Manually remove read-only flags.<br />

2. Edit files.<br />

3. Add or delete files.<br />

4. Run the <strong>Team</strong> <strong>Foundation</strong> Power Tool (TFPT) online command.<br />

Note: You must not rename any files while you are offline.<br />

1. Manually remove read-only flags.<br />

By default, all files in the workspace that have not been checked out are marked as readonly.<br />

When you are working <strong>with</strong>out a server connection, you must manually remove the<br />

read-only flag from files before editing or deleting them. To do this, right-click the file in<br />

Windows Explorer, click Properties, clear the Read-only check box, and then click OK.<br />

Alternatively, you can use the DOS command attrib -r

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!