I have a console application which has its own App.config.
I need to change some values in section time to time.
My problem is, when I execute the exe within the bin/debug folder it gets the relevant appsettings correctly. But when I edit and change values of some key/value pairs and RE-RUN the exe, it still reads the original values.
(By RE-RUN I mean running the application on the command promt by calling MyTool.exe)
I tried to call
ConfigurationManager.RefreshSection("appSettings");
in the begining of my Main method. But did not help.
Can you please advise? Thanks