[visual-studio] Visual Studio 2010 always thinks project is out of date, but nothing has changed

I'm using Visual Studio 2013 Professional with Update 4 but didn't find resolution with any of the other suggestions, however, I did manage to resolve the issue for my Team project.

Here's what I did to cause the problem -

  • Created a new class object (Project -> Add Class)
  • Renamed the file via Solution Explorer and clicked yes when asked if I wanted to automatically rename all references to match

Here's what I did to solve the problem -

  • Go to Team Explorer Home
  • Click Source Control Explorer
  • Drill into the folder where all of the class/project files are
  • Found the ORIGINAL filename in the list and deleted it via right-click
  • Build

If this is the case for you then just be extra sure that you're deleting the phantom file rather than the actual one you want to keep in the project.