In my ASP.NET Core 3.1 project I am trying to read a configuration option from "appsettings.json" via dependency injection service container just as explained by the docs or also by this SO answer.
But whenever I come to the point where I need to add Configuration.GetSection to ConfigureServices() in "Startup.cs", I am getting error:
CS0120 An object reference is required for the non-static field, method, or property 'Configuration.GetSection(string)'
static Configuration.GetSection is part of ".NET Platform extensions 3.1". Do I need to install a dependency/add an assembly?
I already tried installing NuGet ConfigurationManager.
