TFS Source Control doesn’t always get the latest changes. It gets what it thinks are the latest changes (and for the most part it gets it right if you work exclusively in Visual Studio). However, there are times when it gets it wrong and you have to force its hand a little.
So, if you have issues getting latest code then what you need to do is:
- Right click the branch or folder that is problematic
- Go to the “advanced” sub-menu and click “Get Specific Version…”
- Then in the dialog check the two “overwrite…” boxes
- Finally, press “Get”
At this point VS/TFS will retrieve all the files in the branch/folder selected and overwrite existing files. It will also retrieve files it didn’t already have, even although it thought it had them.