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.
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.