Thank you .Net Core for finally moving from XML to JSON. As a json lover the xml within .Net always bothered me. But the config is now stored in json, which makes it easier to maintain, and you need to map it to an actual class, which enables you to make use of the typing in C#. Now you are able to take advantage of intellisense even with the web.config, which is now called appsettings in .Net Core.

Now the appSettings look like

Create a cs class that correspond to the appsettings variables that you want to use in…

Chewy2Theo

Just another developer who's into lazy tools that can make my life easier, and hopefully yours too.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store