Reading a config file from a .DLL

R

Ray Stevens

I have a dotnet wrapper service running on a service that calls one of our
custome components. I would like to read the appsettings section from a
config file, but because this is a class file reather than an .exe,
app.config is not configured as [appname].exe.config when compiled.

What is the best way to read the app.config file from the .dll?
 
N

Nick Malik [Microsoft]

The configuration for your DLL goes into the app.config file for the exe
itself.


--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
 

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