I am using pre-compiled Azure Functions and I know I can read values in the App Settings using the ConfigurationManager.AppSettings["keyname"].
I have been trying to create an additional App Setting using something like the below:
var configFile = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
var settings = configFile.AppSettings.Settings;
settings.Add(pair.Key, pair.Value);
However when I try this I get the following error message:
exePath must be specified when not running inside a stand alone exe.
Any ideas if this is even possible? Or able to provide a pointer as how to get it working?