5
Reply

C# config files

Sie Ste

Sie Ste

Sep 6 2012 2:24 PM
2k
In a C# 2008 and C# 2010 console applications that I am working on, I have the following questions to ask about adding features to the app.config file:
1.I would like to know how to add a reference to an executable that needs to run. I do not want to hard code the path, I would prefer to have the data path be dynamic.
2.I would like to add 2 entires to the app.config file where the location points to two different locations where output files are placed.
Thus can you tell me and/or point me to a reference that will show me how to make the coding changes to use and app.config file and what to add to the app.config file for my goals to be accomplished? (I basically would like to know what 'tag(s)' in the app.config I would need to place these new references.)

Answers (5)