Conditional attribute is not working

  • Thread starter Thread starter Julian Hershel
  • Start date Start date
J

Julian Hershel

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
 
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
 
Back
Top