MyApp.exe.config vs MyApp.config

  • Thread starter Thread starter Jasmine
  • Start date Start date
J

Jasmine

Hi,
I have a MyApp.exe.config file with some settings, but my program seems to
IGNORE it.
it looks for MyApp.config instead.

changing the exe.config to .config is a bit complicated (windows installer
is involved...).

any ideas as to WHY it happens or how to FIX it ?

I'm using .NET 2 on windows server 2003 SP2 with VS 2005

thanks.
 
You should have a config file called "app.config" in your project. Upon
complilation, this file will be renamed to yourAppName.exe.config.
 
Hi, thanks for the reply, but I don't think this will help -
a) I have a native project (c++)
b) I already have a AppName.exe.config and it is ignored, renaming it to
AppName.config makes the system consider it.

I've find out that this happens if I use Run-Time Library "Multi-Threaded"
(/MT).
If I use "Multi-Threaded Dll" (/MD) then the AppName.exe.config is NOT
ignored.

any idea why ?
 
Back
Top