In iOS I have 5 application which use same code. I was able to refer the common classes and separate the application name, theme and color using the values from the Prefix.pch f
Just replace
#define APPLICATION_NAME @"Application01"
by #define APPLICATION_NAME_Application01
and
#if APPPLICATION_THEME = @"Brown"
by #if APPPLICATION_THEME_Brown
additional the instead of #define
you can just set it in the project properties in the menu Build->Conditional compilation Symbols:
and just put APPLICATION_NAME_Application01
C# language supports defines which can be defined either globally in the project file or you can define them on top of any file:
#define USE_BROWN_THEME
However, using application name is set in the WMAppManifest.xml
file and you can only check/read it at runtime, you cannot do that at compile time. And xml files don't play well with #define
s.
#define (C# Reference)