update to ignore appsettings.migration.json

This commit is contained in:
2025-09-29 16:45:55 +02:00
parent d39a3d283d
commit 04b3d630fe

View File

@@ -37,6 +37,7 @@ try
Directory Directory
.GetFiles(builder.Environment.ContentRootPath, "appsettings.*.json", SearchOption.TopDirectoryOnly) .GetFiles(builder.Environment.ContentRootPath, "appsettings.*.json", SearchOption.TopDirectoryOnly)
.Where(file => Path.GetFileName(file) != $"appsettings.Development.json") .Where(file => Path.GetFileName(file) != $"appsettings.Development.json")
.Where(file => Path.GetFileName(file) != $"appsettings.migration.json")
.ToList() .ToList()
.ForEach(file => config.AddJsonFile(file, true, true)); .ForEach(file => config.AddJsonFile(file, true, true));