Ghost Developer Ghost Developer - 9 days ago 6
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

Conditional compilation doesn't work with project configuration names.

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