Hello, recently we migrated our ASP.NET web service to ASP.NET core recently but we are still using the old app.config xml. I am currently working on migrating app.config to appsettings.json and use Microsoft.Extensions.Configuration.
Our service depend on different packages/library. One of the package does a job of reading the app.config (Using System.Configuration.ConfigurationManager) and storing it in in-memory dictionary. We use this configuration for our service and the other packages as well. I tried to find the better option to do this configuration migration in a better way but did not get much luck. Hence I am reaching out here to understand following.
- With respect to the current scenario I have presented, what would be an ideal way to migrate app.config to appsettings.json? considering the fact that service configuration is also used in the packegs on thich service depend on.
- Do you have any suggestion on better design for this migration?
- Are there any examples of migration from ASP.NET's app.config to ASP.NET core using appsettings.json in a similar scenario described above?
- Do you recommend to look at any current systems which use Microsoft.Extensions.Configuration using a better design in their code?
Your help is much appreciated. Thanks!