c# - Conditional resource compile -
i have c# application. application includes resource file images , icon. target compile same application different set of images/icons. same images name, different content.
is there way include different resource file in compile time on condition?
maybe looking preprocessor directives or conditional attribute.
preprocessor directives
from this tutorial bipin joshi:
c# preprocessor directives commands meant c# compiler. using preprocessor directives instruct c# compiler alter compilation process in way. example may instruct c# compiler particular block of code excluded compilation process.
conditionalattribute
from msdn
indicates compilers method call or attribute should ignored unless specified conditional compilation symbol defined.
to compare these 2 see this post.
Comments
Post a Comment