Another thing to check is the project configuration window, in which you choose which configuration is actually used for each project for the current solution configuration configuration. For example, I recently had a solution in which the release configuration had one of the static library projects configured to collect the debug version that caused this error.
source share