This is a solution to an issue with uVision. Our projects are stored within a version control system and whenever I would open a new view on a project, the dependencies (.h) files would all point to the old directory instead of the new view.
Solution: 1. Do NOT put the .dep file into source control. 2. If the dependencies are pointed to the wrong directory (usually a hard path, instead of a locally referenced path), close uVision, delete the .dep file, the reopen uVision and it will rebuild the .dep file as needed.