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 552b653 commit e14121cCopy full SHA for e14121c
src/SiteMonitor/Models/Configuration.cs
@@ -1,5 +1,5 @@
1
-using System.IO;
2
-using System.Reflection;
+using System;
+using System.IO;
3
4
using Newtonsoft.Json;
5
@@ -10,7 +10,8 @@ namespace SiteMonitor.Models;
10
/// </summary>
11
public class Configuration {
12
private static readonly string S_CONFIG_LOCATION =
13
- Path.Combine(Path.GetDirectoryName(Assembly.GetEntryAssembly()?.Location) ?? string.Empty, "config.json");
+ Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "nullinside",
14
+ "site-monitor", "config.json");
15
16
private static Configuration? s_instance;
17
0 commit comments