Member1

Member1

  • NA
  • 169
  • 51k

how to edit values of app.config file ?

Oct 21 2015 4:25 AM
I have two windows application project says "A" and "B" in same solution. I already sets all key values in app.config file of "A" . Now I got requirement that I have to make one exe says winform contaings textboxes where I have to set all key values for app.config file of "A" . this exe is my project "B". now i tried many ways to get access of config file of project A . but i failed. I also tried with "ConfigurationManager.OpenExeConfiguration(path)" but here needs file path which i could not put hardcoded. I am restricted to put any hardcoded paths.

note: I created setup project and added both projects output so that both projects exes and app.config of "A" will be in same folder so that its easy to locate file.

Is there any way to achieve this.
Please suggest me ,
Thanks to everyone.

Answers (1)