common config file

  • Thread starter Thread starter orenl
  • Start date Start date
O

orenl

I have a server application which can be called by web services or
directly from the command line.
the solution has a website with web.config and a consoleProject with
app.config.
I need to work with a single config file (preventing duplication).
how can I do this? how can I load a common config file (that belongs
to a common project)?
 
Hello orenl,

You can use the following section "<appSettings file="YourCommionData.config"/>"
and put all common logic to the separate file

o> I have a server application which can be called by web services or
o> directly from the command line.
o> the solution has a website with web.config and a consoleProject with
o> app.config.
o> I need to work with a single config file (preventing duplication).
o> how can I do this? how can I load a common config file (that belongs
o> to a common project)?
---
WBR, Michael Nemtsev [C# MVP]. Blog: http://spaces.live.com/laflour
team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
 
Back
Top