c# - is it possible to Use key values within app.config in vs 2013 -
i trying access key value key in app.config not work.
<appsettings> <add key="key1" value="dev.cloud" /> <add key="url" value="https://www.[key1].com"/> </appsettings> i tried ${key1} valumanifest.xml not work in app.config. missing here ?
you have use configurationmanager read settings in appsettings section. example:
var key1val = configurationmanager.appsettings["key1"] // returns value of key1 appsettings.
Comments
Post a Comment