How to Read from appsettings.json in ASP.NET Core (C#)
· 9 min read
appsettings.json is where an ASP.NET Core app keeps its settings — connection strings, API base URLs, feature flags, timeouts. Reading those values comes down to one service, IConfiguration, which ASP.NET Core registers for you. In a console app you build the same thing yourself in a few lines.
This guide covers both, on .NET 10.
