Click here to Skip to main content
15,890,946 members
Articles / Programming Languages / C#

(C#) Determining whether the current build mode is Debug or Release

Rate me:
Please Sign up or sign in to vote.
5.00/5 (2 votes)
1 Feb 2012CPOL 15.7K   1  
Have a look this one, I just wrote: Accurate way to tell if an assembly is compiled in debug or release mode in c#[^] public static bool IsInDebugMode(string FileName) { var assembly = System.Reflection.Assembly.LoadFile(FileName); var attributes =...

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Product Manager www.xnlab.com
Australia Australia
I was born in the south of China, started to write GWBASIC code since 1993 when I was 13 years old, with professional .net(c#) and vb, founder of www.xnlab.com

Now I am living in Sydney, Australia.

Comments and Discussions