always clean before build or rebuild
Posted on 2015-01-13
I'm running VIsual Studio 2010, debugging an older bit of code.
Is there a way to always have the Solution do a "Clean" before a "Build" automatically?
During my own research, apparently "Rebuild" is supposed to do a "Clean + Build" ... but is it possible that the "clean" is not being as effective when done in in this manner, vs doing a Clean THEN a Rebuild (or Build) as separate steps?
Anyway - my questions stands .. is there a way to do a "Clean" then a "Rebuild" in an automated fashion...assuming just doing a "Rebuild" is not enough for some strange reason?
The whole reason for this is when I do a "Rebuild" some of my references no longer "link up" as they used to for one of my projects when I try to open a window inside the application. However, if I close the window, do a Clean THEN a Rebuild, then go back and try and open the window -- it works.