/// <summary>most migrations go in here</summary> public static void RunPostConfigMigrations(Configuration config) { AudibleApiStorage.EnsureAccountsSettingsFileExists(); PopulateMissingConfigValues(config); // // migrations go below here // Migrations.migrate_to_v6_5_2(config); }
static void Main() { Application.SetHighDpiMode(HighDpiMode.SystemAware); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); createSettings(); AudibleApiStorage.EnsureAccountsSettingsFileExists(); migrate_to_v4_0_0(); migrate_to_v4_0_3(); // add setting for whether to delete/retain aax ensureLoggingConfig(); ensureSerilogConfig(); configureLogging(); checkForUpdate(); logStartupState(); Application.Run(new Form1()); }
static void Main() { //// uncomment to see Console. MUST be called before anything writes to Console. Might only work from VS //AllocConsole(); Application.SetHighDpiMode(HighDpiMode.SystemAware); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); // must occur before access to Configuration instance migrate_to_v5_2_0__pre_config(); //***********************************************// // // // do not use Configuration before this line // // // //***********************************************// var config = Configuration.Instance; createSettings(config); AudibleApiStorage.EnsureAccountsSettingsFileExists(); migrate_to_v5_0_0(config); migrate_to_v5_2_0__post_config(config); ensureSerilogConfig(config); configureLogging(config); logStartupState(config); checkForUpdate(config); Application.Run(new Form1()); }