Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Migrating ASP.NET web service app.config to appsettings.json of Microsoft.Extension.Configuration

$
0
0

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.

  1. 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.
  2. Do you have any suggestion on better design for this migration?
  3. 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?
  4. 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!


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>