<p>I work on a large Visual C++ (MFC) project in VS.NET 2005.</p>

<p>I have noticed strange behavior in Visual C++ 2005. Often, I will change one line of code in a .CPP file but many .CPP files will compile as a result of this. I have never seen this until VS.NET 2005. Theortically, changing a line of code in a .CPP file should simply require recompilation of that .CPP file and re-linking of the PE file.</p>

<p>What am I not understanding about the build process.</p>

[{'answer_id': 45373, 'author': 'Codeslayer', 'author_id': 4021, 'author_profile': 'https://Stackoverflow.com/users/4021', 'pm_score': -1, 'selected': False, 'text': '<p>This is a strange bug in the VS2005 dependency behavior. To find out one suggestion would be to take the following steps:</p>\n\n<ol>\n<li><p>Go to <strong>Tools</strong> <strong>-> Options ->\nProjects and Solutions -> Build and\nRun -> MSBuild Project Build output\nVerbosity</strong> and select <strong>Detailed</strong></p></li>\n<li><p>Compile your project.</p></li>\n</ol>\n\n<p>This will give you a detailed output of the build which <strong>"may"</strong> help you arrive at a solution to your problem.</p>\n'}, {'answer_id': 420305, 'author': 'Binary Worrier', 'author_id': 18797, 'author_profile': 'https://Stackoverflow.com/users/18797', 'pm_score': 1, 'selected': False, 'text': '<p>I found <a href="http://untidy.net/blog/2006/07/10/vs-always-builds/" rel="nofollow noreferrer">this link</a> helpful when solving a similar problem, was under pressure at the time, I tried a few things and the issue went away, for the life of me I don\'t know (or can\'t remember) which - if any - helped.</p>\n\n<p>Hope this helps</p>\n'}]
['https://Stackoverflow.com/questions/45235', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2768/']