From 1e0a8be504708bd33d63ad5d9e03a5a7d5823ea9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Philippe=20Bruy=C3=A8re?= Date: Thu, 9 Sep 2021 17:17:49 +0000 Subject: [PATCH] add AppConfigPath public static property to Configuration class --- Crow/src/Configuration.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 () { -- 2.47.3