folibis folibis - 23 days ago 9
C# Question

Conditional resource compile

I have c# application. The application includes resource file with images and icon.
My target is to compile the same application but with different set of images/icons. Same images name, but different content.

Is there a way to include different resource file in compile time on condition?

Answer

Maybe you are looking for Preprocessor Directives or Conditional Attribute.

See this post