Reduce the number of #if-#else-#endif directives in Program.cs for code simplicity.