I have an IConfiguration
instance but GetValue is not defined.
using Microsoft.Extensions.Configuration;
...
configuration.GetValue<string>(path);
Bonus question: why is this null when under the debugger? I see it gets the section, albeit a single node containing a string, but its value is null?
configuration.GetSection(path).Value
I’ve had this every time I’ve used dotnet configuration and I never remember how to solve it.