private static void Main() { Log.Logger = new LoggerConfiguration() .MinimumLevel.Information() .WriteTo.Console() .WriteTo.File("log.txt", rollingInterval: RollingInterval.Day) .CreateLogger(); NBug.Settings.ReleaseMode = true; NBug.Settings.StoragePath = NBug.Enums.StoragePath.CurrentDirectory; NBug.Settings.UIMode = NBug.Enums.UIMode.Full; Core.DocManager.Inst.SearchAllSingers(); var pm = new Core.PartManager(); var app = new App(); if (!Debugger.IsAttached) { AppDomain.CurrentDomain.UnhandledException += NBug.Handler.UnhandledException; app.DispatcherUnhandledException += NBug.Handler.DispatcherUnhandledException; } var window = new UI.MainWindow(); app.Run(window); }
static void Main() { //Thread backgroundThread = new Thread(new ThreadStart(() => { })); //backgroundThread.Start(); Core.DocManager.Inst.SearchAllSingers(); var pm = new OpenUtau.Core.PartManager(); App app = new App(); UI.MainWindow window = new UI.MainWindow(); app.Run(window); }