Macros in Prefix.pch - equivalent in WP8

In iOS apps, we use the same code. I was able to pass common classes and separate name, theme, color, etc., using the values ​​from the Prefix.pch file.

#define APPLICATION_NAME @"ABC" #define APPLICATION_THEME @"RED" #define SUPPORTS_ICLOUD 0 

Using these macros, I defined my prefix file, in my program I can say

 #if SUPPORTS_ICLOUD = 0 -do this stuff- 

I would like to follow the same approach in WP8.

I found that we can just set it in project properties in the menu Build->Conditional compilation Symbols:

But I have about 50+ macros, and it's hard to add to Build->Conditional compilation Symbols to add and remove it.

So what is the best approach I can follow?

0
source share

All Articles