In my project, I do not use the standard Debug and Release configurations, instead I have custom configurations, for example. ReleaseConfig1.
In C #, I can still check which version of the configuration was built against.
I tried the following, but always goes the other way:
#if ReleaseConfig1
#else
#endif
The configuration of my solution looks something like this:
ReleaseConfig1:
Project 1: Release
Project 2: ReleaseSpecialXXX
Project 3: Debug
ReleaseConfig2:
Project 1: ReleaseSpecialZZZ
Project 2: Release
Project 3: Debug
source
share