private KronosConfigurationInstance() { var configFile = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData), "Madhon", "Kronos", "appSettings.json"); Config = JsonConvert.DeserializeObject <KronosConfiguration>(File.ReadAllText(configFile)) !; }
private KronosConfigurationInstance() { Config = SimpleJson.DeserializeObject <KronosConfiguration>(File.ReadAllText(Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "settings.json"))); }