In most cases (especially in C projects), this is due to the setting of the Enable Minimal Restructuring project. In "minimum recovery" mode, VS2005 tries to make more precise decisions about what needs to be rebuilt: not based on which header files were changed, but rather based on which individual class definitions were changed. In C projects (unlike C ++), this approach crashes mainly in 100% of cases, i.e. Completely ignores modified header files and never restores anything. Very annoying. I don’t know which project you are building, but maybe it can also fail in C ++ projects.
In any case, try setting Enable Minimal Restructuring to None. (This is a project setup, BTW, not a global VS setup). This should bring VS back to traditional file-based file recovery.
source share