From 105f98b02798db940465abcb2b35473c14db1f0e Mon Sep 17 00:00:00 2001 From: "Martin Hinshelwood nkdAgility.com" Date: Wed, 4 Sep 2024 08:16:27 +0100 Subject: [PATCH] Change the base directory from the default if the running location to the app install directory. --- docs/Reference/Generated/MigrationTools.xml | 22 ++++++++++---------- src/MigrationTools.Host/MigrationToolHost.cs | 2 ++ 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/docs/Reference/Generated/MigrationTools.xml b/docs/Reference/Generated/MigrationTools.xml index 852c1ecc6..83c65dea0 100644 --- a/docs/Reference/Generated/MigrationTools.xml +++ b/docs/Reference/Generated/MigrationTools.xml @@ -248,7 +248,7 @@ - => @"true" + => @"false" @@ -258,37 +258,37 @@ - => @"topic/enable-upgrade-telemetery" + => @"main" - => @"9da18171" + => @"cc0b804b" - => @"9da18171b9a1938f37b1bf62e4ac8a7e63e2706e" + => @"cc0b804bb54d2838d186f8c26bc00063459809ba" - => @"2024-09-03T15:15:23+01:00" + => @"2024-09-03T17:25:32+01:00" - => @"7" + => @"0" - => @"v16.0.0-Preview.6-7-g9da18171" + => @"v16.0.0-Preview.7" - => @"v16.0.0-Preview.6" + => @"v16.0.0-Preview.7" @@ -318,17 +318,17 @@ - => @"7" + => @"0" - => @"Preview.6" + => @"Preview.7" - => @"-Preview.6" + => @"-Preview.7" diff --git a/src/MigrationTools.Host/MigrationToolHost.cs b/src/MigrationTools.Host/MigrationToolHost.cs index e6859f451..d1cd0d66d 100644 --- a/src/MigrationTools.Host/MigrationToolHost.cs +++ b/src/MigrationTools.Host/MigrationToolHost.cs @@ -81,6 +81,8 @@ public static IHostBuilder CreateDefaultBuilder(string[] args, Action { + builder.SetBasePath(AppContext.BaseDirectory); + //builder.AddJsonFile("appsettings.json", optional: false); if (!string.IsNullOrEmpty(configFile) && File.Exists(configFile)) { builder.AddJsonFile(configFile);