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

How to update appsettings.json?

$
0
0

Hi,

I have an ASP.NET Core 2.0 WebApp where I read my configuration settings from appsettings.json/appsettings.{EnvironmentName}.json.
I have set the "reloadOnChange" flag to "true" for both my appsettings.json files and use IOptionsSnapshot to inject configurations into my controllers so that I can see new values if there are any changes in my appsettings.json files.

On my localbox, I can manually edit the appsettings.json files and see the changes being picked up on subsequent requests.

My question is, once I am hosting my WebApp (either self hosting in an Azure Cloud Service WorkerRole OR Service Fabric), how can I update my appsettings.json files?
Once they are updated, the new values will be picked up. But how do I update them in the first place?


Viewing all articles
Browse latest Browse all 9386

Trending Articles



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