Issue: Ensure your code is the latest before a check out.
Not working with the latest code often creates a confusing situation for a developers trying to debug misbehaving code. Furthermore, it becomes very important to get latest changes and merge differences when working on a project with many dependencies.
Solution:
David McCollough my friend and co-worker showed me how to automatically ensure getting latest upon checkout by performing the following steps:
- Launch Visual Studio 2008
- Click Tools->Options
- Expand the Source Control section
- Click on Visual Studio Team Foundation Server
- Ensure that the “Get Latest Version of item on check out” is checked.
Note: If a checkout is attempted, but the TFS has a newer version of the file being checked out, then the user is prompted to overwrite the file with the latest version.
Related: Exposing TFS 2008 Working Items