app.config

P

Peter Kirk

Hi

I thought that if I have a project with an "app.config" file, then during
compilation this file will be copied to the output directory (and renamed to
the name of the output dll). Is this an incorrect thought?

If not, what could be the reason it does not occur when I build my project
in Visual Studio c#?

If it is incorrect, then what can I do to make it occur? (Do I need to write
a "post build event command line"?)

Thanks,
Peter
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

a DLL project does not a config file.

only executables ( win /web app have config files)

if you need to keep configurations you will need to code it, take a look in
the archives, this was discussed a couple of days ago and some solutions
were provided


cheers,
 
M

Marc Scheuner [MVP ADSI]

I thought that if I have a project with an "app.config" file, then during
compilation this file will be copied to the output directory (and renamed to
the name of the output dll). Is this an incorrect thought?

Yes - this tought ONLY works for EXE projects - *NOT* for class
libraries (DLL). Sorry - that was a design choice by MS (lots of folks
don't agree / understand, but that's the way it is - for now).

Marc
 

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

Top