Merge pull request #133 from BinaryAlley/bugfix/fix-appsettings-file-name-case

Switches appsettings file names to lowercase so configuration loads on case-sensitive filesystems
This commit is contained in:
BinaryAlley authored and GitHub committed 2026-08-09 01:05:44 -07:00
commit 361dd66f76
3 files changed
+3 -3

No files matched your search

@@ -31,7 +31,7 @@ public static class SharedConfiguration
throw new DirectoryNotFoundException($"The base path '{basePath}' does not exist.");
configuration.SetBasePath(basePath);
configuration.AddJsonFile("appsettings.shared.json", optional: false, reloadOnChange: true);
configuration.AddJsonFile("appsettings.shared.Development.json", optional: true, reloadOnChange: true);
configuration.AddJsonFile("appsettings.shared.development.json", optional: true, reloadOnChange: true);
configuration.AddEnvironmentVariables(); // environment variables should override the configuration files
// bind the appsettings sections
@@ -28,7 +28,7 @@ internal static class PresentationApiLayerConfiguration
throw new DirectoryNotFoundException($"The base path '{basePath}' does not exist.");
configuration.SetBasePath(basePath);
configuration.AddJsonFile("appsettings.json", optional: false, reloadOnChange: true);
configuration.AddJsonFile("appsettings.Development.json", optional: true, reloadOnChange: true);
configuration.AddJsonFile("appsettings.development.json", optional: true, reloadOnChange: true);
return services;
}
@@ -24,7 +24,7 @@ internal static class PresentationWebLayerConfiguration
{
// add the configuration sources to the configuration builder
configuration.AddJsonFile("appsettings.json", optional: false, reloadOnChange: true);
configuration.AddJsonFile("appsettings.Development.json", optional: true, reloadOnChange: true);
configuration.AddJsonFile("appsettings.development.json", optional: true, reloadOnChange: true);
serviceCollection.AddOptions<ServerConfigurationModel>()
.Bind(configuration.GetRequiredSection(ServerConfigurationModel.SECTION_NAME))