Reputation:
Visual Studio 2010 is known for causing missed or unwanted rebuilds. Both are annoying. There are numerous posts on the topic.
I have observed that whenever you switch the Configuration or the Platform, the next Build will be a Rebuild. For the same reason, a Batch Build always performs a full Batch Rebuild.
So my question is specifically: is there a way to avoid that, after a switch (Configuration or Platform), the build turns to a rebuild.
Upvotes: 2
Views: 138
Reputation: 3264
As mentionned in the question comments, the problem comes from the "Intermediate Directory" pointing to same directory for every platform/configuration. The object files are then outputted in the same directory and creates conflicts when you change the configuration/platform, thus forcing a rebuild.
To avoid this problem, I recommend setting the Intermediate Directory to something like this:
$(SolutionDir)build\$(Configuration)\$(Platform)\
Upvotes: 1