Debug.Assert Appears in Release Mode

Posted by Ngu Soon Hui on Stack Overflow See other posts from Stack Overflow or by Ngu Soon Hui
Published on 2010-06-11T09:05:20Z Indexed on 2010/06/11 9:12 UTC
Read the original article Hit count: 176

Filed under:
|

We all know that Debug.Assert will not be compiled into the dlls when compiled in release mode. But for some reason Debug.Assert did appear in the release version of a component I wrote. I suspect that I might have mess up my csproject setting.

Any idea why Debug.Assert appears in release mode?

P/S: I have double checked to make sure that I was really compiling in release mode before asking this question.

© Stack Overflow or respective owner

Related posts about c#

Related posts about visual-studio-2008