Skip to content

Commit

Permalink
made appsettings optional (see comment near ConfiguraionBuilder insta…
Browse files Browse the repository at this point in the history
…ntiation)
  • Loading branch information
EvilLord666 committed Mar 5, 2024
1 parent 3fa7c91 commit af9b071
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Wissance.Zerial/Wissance.Zerial.Desktop/App.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ public class App : Application
{
static App()
{
// appsettings is optional due to we don't actually know install dir i.e. in Snap, but we could execute from any working dir
IConfigurationBuilder builder = new ConfigurationBuilder()
.SetBasePath(Directory.GetCurrentDirectory())
.AddJsonFile(AppSettingsFile, optional: false, reloadOnChange: true);
.AddJsonFile(AppSettingsFile, optional: true, reloadOnChange: true);

Configuration = builder.Build();

Expand Down

0 comments on commit af9b071

Please sign in to comment.