Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit 9219230

Browse files
committed
Fix base directory
1 parent 0ac90a0 commit 9219230

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ static IHostBuilder CreateHostBuilder(string[] args) =>
115115

116116
static void ConfigureAppConfiguration(IConfigurationBuilder builder) {
117117
builder.Sources.Clear();
118-
builder.AddJsonFile(Path.Combine(Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location), "app-settings.json"), optional: true);
118+
builder.AddJsonFile(Path.Combine(System.AppContext.BaseDirectory, "app-settings.json"), optional: true);
119119
var pathUtil = new PathUtility();
120120
var authCache = new AuthenticationCacheUtility(pathUtil);
121121
var dataDir = pathUtil.GetApplicationDataDirectory();

0 commit comments

Comments
 (0)