I have a big solution with 100 projects in it (mostly class libraries). I found a strange behavior during building a release version. After building a release version I got debug version of some my libraries in bin/Release folder. For many libraries I got correctly release version, but for some I got only debug (DateTime differ and debug code present into Reflector). I checked all project properties, there are no problems and no differences between projects. What I need to do to change this behavior of Visual Studio?
Update: For example, lets my solution consists of three projects:
- Project1
- Project2 (reference Project1)
- Project3 (reference Project2)
If I build this in release mode I get in Project3\bin\Release directory next builds:
- Project1 (Debug)
- Project2 (Release)
- Project3 (Release)
But! In Project1\bin\Release there is a RELEASE build.
So I assume, that if Project3 don't reference Project1 directly, than MSBuild use debug version of Project1 for build. Can you suggest any solution except reference all not referenced directly libraries?
See: 