diff --git a/FastGithub/Program.cs b/FastGithub/Program.cs index 51548d2..e072fa6 100644 --- a/FastGithub/Program.cs +++ b/FastGithub/Program.cs @@ -34,10 +34,12 @@ namespace FastGithub }) .ConfigureAppConfiguration(c => { - if (Directory.Exists("appsettings") == true) + const string APPSETTINGS = "appsettings"; + if (Directory.Exists(APPSETTINGS) == true) { - foreach (var jsonFile in Directory.GetFiles("appsettings", "appsettings.*.json")) + foreach (var file in Directory.GetFiles(APPSETTINGS, "appsettings.*.json")) { + var jsonFile = Path.Combine(APPSETTINGS, Path.GetFileName(file)); c.AddJsonFile(jsonFile, true, true); } }