Describe the bug
The new minimal host doesn't seem to read the appsettings.{env}.json.
To Reproduce
Program.cs
var app = WebApplication.Create(args);
Console.WriteLine(((IConfigurationRoot)app.Configuration).GetDebugView());
appsettings.Development.json
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Debug",
"Microsoft.Hosting.Lifetime": "Information"
}
}
}
Further technical details
Microsoft.AspNetCore.App 6.0.0-preview.4.21222.16 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Describe the bug
The new minimal host doesn't seem to read the
appsettings.{env}.json.To Reproduce
Program.cs
appsettings.Development.json
{ "Logging": { "LogLevel": { "Default": "Information", "Microsoft": "Debug", "Microsoft.Hosting.Lifetime": "Information" } } }Further technical details
Microsoft.AspNetCore.App 6.0.0-preview.4.21222.16 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]