Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Access configuration settings from appsetting.json

We saw about the various Configuration options provided by .Net Core in the previous post. In this post we shall see on how to use the configuration file option to store and retrieve key-value configuration settings.

Traditionally we are used to store configuration settings in environmental variables or config files like .INI files, web.configfiles etc. Asp.Net core provides a default JSON based configuration file called appsettings.json file. In this post we shall see on how to read configuration settings from the appsettings.json file in the application startup.


This post first appeared on C# Guide, please read the originial post: here

Share the post

Access configuration settings from appsetting.json

×

Subscribe to C# Guide

Get updates delivered right to your inbox!

Thank you for your subscription

×