We have Preprocessor Directives in Visual Studio for c#, for example:
#define CONDITION1
#if CONDITION1
Console.WriteLine("Version1");
#else
Console.WriteLine("Version2");
#endif
But what should I do if I have a library and want it to compile differently to different solution?
For example, I want to #define CONDITION1 in solution1, and #define CONDITION2 in solution2, what should I do?