We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f5fb3e commit 1bd1157Copy full SHA for 1bd1157
Src/StackifyLib/Config.cs
@@ -126,16 +126,17 @@ internal static string Get(string key, string defaultValue = null)
126
{
127
128
129
-#if NETSTANDARD1_3
+#if NETSTANDARD1_3 || NET451
130
if (_Configuration != null)
131
132
var appSettings = _Configuration.GetSection("Stackify");
133
v = appSettings[key.Replace("Stackify.", "")];
134
}
135
#endif
136
137
-#if NET451 || NET45 || NET40s
138
- v = System.Configuration.ConfigurationManager.AppSettings[key];
+#if NET451 || NET45 || NET40
+ if (string.IsNullOrEmpty(v))
139
+ v = System.Configuration.ConfigurationManager.AppSettings[key];
140
141
142
if (string.IsNullOrEmpty(v))
0 commit comments