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

Commit 4d31e4a

Browse files
authored
Make app settings configuration file optional
1 parent 4560c17 commit 4d31e4a

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
@@ -117,7 +117,7 @@ static IHostBuilder CreateHostBuilder(string[] args) =>
117117

118118
static void ConfigureAppConfiguration(IConfigurationBuilder builder) {
119119
builder.Sources.Clear();
120-
builder.AddJsonFile(Path.Combine(Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location), "app-settings.json"), optional: false);
120+
builder.AddJsonFile(Path.Combine(Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location), "app-settings.json"), optional: true);
121121
var pathUtil = new PathUtility();
122122
var authCache = new AuthenticationCacheUtility(pathUtil);
123123
var dataDir = pathUtil.GetApplicationDataDirectory();

0 commit comments

Comments
 (0)