I have a Visual Studio 2010 solution with 40-ish projects in it (C# + one C++/CLI). I have Visual studio configured such that it builds the whole solution before starting debugging.
Now suppose I change the code for a 'leaf' project on which no other project depends. When I explicitly build the solution incrementally (F6 or F7), I see a build output line for each project in my solution. The up to date projects are not being recompiled though. For instance, you don't see warnings for the projects. It does take time (maybe 5-10 seconds).
Now suppose I change the same file again, and start debugging (F5). Now something different happens. Only the changed project is recompiled(takes 1 sec or so), and then debugging starts almost instantaneous.
It seems that Visual Studio has two strategies for incremental build, and the best optimized one seems to be available only as a by-product of a debugging session.
Question:
Is there a way to invoke this more optimized build strategy manually, without starting a debug session?