Ghost Developer Ghost Developer - 1 year ago 144
C# Question

Compiler Directives is not working in WPF

I write a condition using compiler directive, but it's not working

Please look at the image below, the configuration QA specific code is not active.

enter image description here

Answer Source

Conditional compilation doesn't work with project configuration names.

Add a Conditional compilation symbol QA under Build in the Visual Studio Project Properties.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download