Application Configuration File

  • Thread starter Thread starter A.M
  • Start date Start date
A

A.M

Hi,

We know that Console.exe looks for Console.exe.config as application
configuration file.
Can I define/change the application configuration file inside that actual
application code?

Thanks,
Alan
 
Hi Alan,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you need to change the application
configuration file to another file instead of App.exe.config and point the
App.exe to that file. If there is any misunderstanding, please feel free to
let me know.

As far as I know, we cannot do this. The App.exe.config file is by design
and the CLR will only look in to this file for configuration settings. It
seems that we cannot change this behavior by any means.

HTH.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
We know that Console.exe looks for Console.exe.config as application
configuration file.
Can I define/change the application configuration file inside that actual
application code?

No.

If you need to use config files that do not conform to the standard
..NET naming convention, you'll need to use a separate, third-party,
config file handler component (which can be found e.g. on
www.codeproject.com)

Marc
================================================================
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)inova.ch
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top