From: Jean-Philippe Bruyère Date: Thu, 9 Sep 2021 17:17:49 +0000 (+0000) Subject: add AppConfigPath public static property to Configuration class X-Git-Tag: v0.9.6-beta~4 X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=1e0a8be504708bd33d63ad5d9e03a5a7d5823ea9;p=jp%2Fcrow.git add AppConfigPath public static property to Configuration class --- diff --git a/Crow/src/Configuration.cs b/Crow/src/Configuration.cs index 55bbeefb..5b99761d 100644 --- a/Crow/src/Configuration.cs +++ b/Crow/src/Configuration.cs @@ -91,7 +91,10 @@ namespace Crow /// public Configuration (Stream defaultConf = null) { load (defaultConf); - } + } + public static string AppConfigPath => Path.Combine ( + Path.Combine (Environment.GetFolderPath (Environment.SpecialFolder.UserProfile), ".config") , + Assembly.GetEntryAssembly ().GetName().Name); static Configuration () {