Configuration file ?

S

Serge Calderara

Dear all,

I need to implement a configuration file for my
application.Based on that I need to hget following
information:

1- How to get the current execution path of my application?
2- how a configuration file can be access from an external
assembly?

thnaks for your comments
regards
serge
 
M

Michael Giagnocavo [MVP]

1- How to get the current execution path of my application?

I believe you should use System.AppDomain.Current.BaseDirectory.
2- how a configuration file can be access from an external
assembly?

It can find the config file and read it as XML.

-mike
MVP
 

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