Julian,
DEBUG is defined for Debug Builds, while DEBUG is not defined for Release
builds.
While RELEASE is not defined for either Debug or Release Builds!
Did you use use Project Properties to define RELEASE=True for Release
Builds?
Hope this helps
Jay
"Julian Hershel" <(E-Mail Removed)> wrote in message
news:u6%(E-Mail Removed)...
> Hi.
>
> I am playing with the Conditional attribute. If I define
> Conditional("DEBUG") for my method and compiles my application as a
release
> build, the method won't be called, as expected. If I define the attribute
as
> Conditional("RELEASE") and compiles my application as a release build the
> method still won't be called. Why? AM I missing something?
>
> Thank you,
> Julian
>
>
|