C # How to check solution configuration

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
//blah
#else
//blah blah
#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
+3
source share
3 answers

Projects really are an active part of MSBuild. Solutions are just VS-the only thing and not everything that is involved in the construction, except for determining the assembly order. Everything that affects the assembly output is done in the project.

DEBUG - . , , / - .

+2

, . .

, Debug DEBUG true ..

0
0

All Articles