preprocessor does not handle "Enabled" properties?

Mar 1, 2013 at 1:01 PM
I built a new instrumented windows app and added some tracing on the Form constructor. I was able to get some tracing to work, but the "Enabled" property did not preprocess well. This is the code
if (EtwTrace.Enabled)
{
    // Do something interesting
}
and this is the pre-processed result:
if (EtwTraceInstrumentedWinForms.TraceHelper.provider.Enabled)
{
    // Do something interesting
}
The class name "EtwTrace" has not been cleared. If I fix this up in the original code to
            if (InstrumentedWinForms.TraceHelper.provider.Enabled)
it works, of course, but then the preprocessor is not used.

Similar problems happen with EtwTrace.TraceFlagEnabled and EtwTrace.TraceFlagAndLevelEnabled.

I was using MS Visual Studio 10 SP1, with version 2.0.0.0 of NTrace downloaded in a zip named NTrace.2.0.141.0.zip

Have I missed some important step?

JR VanMechelen