If you're not doing a shadow build into different directories for debug and release, do a full rebuild.