c# - Determine Solutions Configuration (Visual Studio) -


Is there a way to determine whether you're running in "security configuration", in the code? For example, 'debug' vs 'release?'

I have a service that I would like to check in the IDE in DDB, now I have the balls I set which set the 'service' on the set to correct (which again ' My 'uses the OnStart method to run the main method), if it is set to false, then I run the' main 'method. It works very well, but I often try to reset the bool I forget and then when I serve So micro go to set it fail and I want to go back, bool reset, re-compiled and more.

If I can determine now that I was running programmatic debug in IDE, then I could get this issue.

Edit: While thinking about this, I think what I should do in the end determine whether I am in the 'game' in the id and do not configure the spirits This will allow me to compile it in debug or other configurations.

Simple Solutions' System Diagnostics. Debugger ISHAT checks for

To determine whether you are running under debug in the IDE


Comments