Asp.net 5 has a new configuration system which utilizes json files for settings. You have to manually select the json file you want loaded as your configuration with the .AddJsonFile(string fileName)
method of the new Configuration
class.
Meanwhile, in Azure land we've got this nifty CloudConfigurationManager
class which is supposed to handle grabbing settings from the Azure Website settings or the active web.config
if a Azure setting is not found.
But how are these two things intended to work together? I'm having trouble finding any documentation. I'd like to manage my settings in Azure for production but use the config.json
for local debugging. I've had a great deal of trouble finding any examples or documentation.