-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Closed
Labels
area-Extensions-Configurationbughelp wanted[up-for-grabs] Good issue for external contributors[up-for-grabs] Good issue for external contributors
Milestone
Description
LABEL=area-Extensions-Configuration
Description
When I configure the following Options class:
class MyOptions
{
// Null if not in appsettings.json, otherwise values from appsettings.json
public string[] Works1 { get; set; }
// Null if not in appsettings.json, otherwise values from appsettings.json
public List<string> Works2 { get; set; }
// Null if not in appsettings.json, otherwise values from appsettings.json
public IReadOnlyList<string> Works3 { get; set; }
// Empty if not in appsettings.json, otherwise values from appsettings.json
public List<string> Works4 { get; set; } = new List<string>();
// Empty in any case
public IReadOnlyList<string> DOES_NOT_WORK { get; set; } = new List<string>();
}
The DOES_NOT_WORK is not properly filled, it is always empty, even if there are values in the appsettings.json
Configuration
.NET Framework 4.8 / Windows 10 / x64 / ASP.NET Core 2.1
(aspnetcore repo says that the Configuration package is now maintained here, which is why I'm filing the issue here, hope it's correct)
Best regards,
D.R.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-Extensions-Configurationbughelp wanted[up-for-grabs] Good issue for external contributors[up-for-grabs] Good issue for external contributors