c# - how to set parameters to app.config file -


  1. i want set parameters own app.config file programmatically?

i tried following code 1 question not working.

configuration config =      configurationmanager.openexeconfiguration(application.executablepath);  config.appsettings.settings.add("param1", "value1");  config.save(configurationsavemode.minimal); 

my second questions

can access & update app.config file of other project if yes how that? plz guide me.

this code work me. take @ debug or release folder of application , see yourprojectname.exe.config file. application.executablepath 1 of this.


Comments

Popular posts from this blog

Capture and play voice with Asterisk ARI -

java - Why database contraints in HSQLDB are only checked during a commit when using transactions in Hibernate? -

visual studio - Installing Packages through Nuget - "Central Directory corrupt" -