static void Main(string[] args) { Console.WriteLine("Version is :" + stringRes.version); worklistGenerator generator = new worklistGenerator(); bool bok = false; #if DEBUG #else try #endif { Utility.Write2File(Utility.GetOutputFolder() + "result.txt", bok.ToString()); if(args.Length != 0) { CopyConfigurationFiles(args[0]); } bok = generator.DoJob(); } #if DEBUG #else catch (Exception ex) { Console.WriteLine(ex.Message + ex.StackTrace); Console.WriteLine("Press any key to exit!"); Console.ReadKey(); //Utility.Write2File(Utility.GetOutputFolder() + "errMsg.txt", ex.Message + ex.StackTrace); log.Info(ex.Message); } #endif Utility.Write2File(Utility.GetOutputFolder() + "result.txt", bok.ToString()); }
static void Main(string[] args) { Console.WriteLine("Version is :" + stringRes.version); worklistGenerator generator = new worklistGenerator(); bool bok = false; #if DEBUG #else //try #endif { Utility.Write2File(Utility.GetOutputFolder() + "result.txt", bok.ToString()); if (args.Length != 0) { CopyConfigurationFiles(args[0]); } bok = generator.DoJob(); } #if DEBUG #else //catch (Exception ex) //{ // Console.WriteLine(ex.Message + ex.StackTrace); // Console.WriteLine("Press any key to exit!"); // Console.ReadKey(); // Utility.Write2File(Utility.GetOutputFolder() + "errMsg.txt", ex.Message + ex.StackTrace); // log.Info(ex.Message); //} #endif Utility.Write2File(Utility.GetOutputFolder() + "result.txt", bok.ToString()); }