c# - how to set parameters to app.config file -
- 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
Post a Comment