Link to home
Start Free TrialLog in
Avatar of Micki-Weaver
Micki-Weaver

asked on

Check if the program is in developing mode

anyone know how to
Check if the program is in developing mode
ASKER CERTIFIED SOLUTION
Avatar of existenz2
existenz2
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
It is probably a good idea to a a config key like:

<add key="IsProduction" value="true"/>

Then check this to determine if you are in production or development
not even honorable mention?
Avatar of Micki-Weaver
Micki-Weaver

ASKER

bool isDebug = false;

#IF DEBUG
isDebug = true;
#ENDIF gives errors

does not work?? errors


and strickdd - I kit the give points just at you add your comment I would have:) thanks
kit=hit
I used
            bool isDebug = false;

#if _DEBUG
isDebug = true;
#endif


what does
<add key="IsProduction" value="true"/>
do?