From 8bba885fb87b72c0c97b03d96821ee78ac17c062 Mon Sep 17 00:00:00 2001 From: Ushakov Michael Date: Wed, 6 Mar 2024 02:13:09 +0500 Subject: [PATCH] static constructor is off --- .../Wissance.Zerial.Desktop/App.axaml.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/Wissance.Zerial/Wissance.Zerial.Desktop/App.axaml.cs b/app/Wissance.Zerial/Wissance.Zerial.Desktop/App.axaml.cs index e7edbd3..09e1967 100644 --- a/app/Wissance.Zerial/Wissance.Zerial.Desktop/App.axaml.cs +++ b/app/Wissance.Zerial/Wissance.Zerial.Desktop/App.axaml.cs @@ -11,11 +11,11 @@ namespace Wissance.Zerial.Desktop { public class App : Application { - static App() + /*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(); - /*try + try { builder = new ConfigurationBuilder() .SetBasePath(Directory.GetCurrentDirectory()) @@ -24,7 +24,7 @@ static App() catch (Exception e) { builder = new ConfigurationBuilder(); - }*/ + } Configuration = builder.Build(); @@ -32,7 +32,7 @@ static App() // services.AddLogging(); ServiceProvider = services.BuildServiceProvider(); - } + }*/ public override void Initialize() { @@ -49,9 +49,9 @@ public override void OnFrameworkInitializationCompleted() base.OnFrameworkInitializationCompleted(); } - public static IServiceProvider ServiceProvider { get; private set; } - public static IConfiguration Configuration { get; private set; } + //public static IServiceProvider ServiceProvider { get; private set; } + //public static IConfiguration Configuration { get; private set; } - private const string AppSettingsFile = "appsettings.json"; + //private const string AppSettingsFile = "appsettings.json"; } } \ No newline at end of file