c# - #if DEBUG doesn't seem to work in my VS 2010 -


i've been doing following in c# code:

#if debug //debugger code #endif 

but reason when same in c# console application (that built windows service in vs 2010) doesn't seem work , both release , debug configurations looks debug not defined.

do need set preprocessor constant work?

when using 'debug' configuration, have go project's properties -> build , tick 'define debug constant' box.

either that, or define conditional compilation symbol: debug. can other custom compilation symbol :)


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -