It just crossed my mind that in Web, we have this Web.config.debug & We.config.release. Probably, something similar might be there in Winforms too.
I Googled it, and came across
this like[
^] which looks useful discussing something similar. Have a look!