Click here to Skip to main content
15,905,874 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I have created a .dll and it has a .config file. The application which will call this .dll also will have a .config file. If within my .dll I have code such as:
string con = ConfigurationManager.ConnectionStrings["DB"].ConnectionString;

Does the .dll look in its own .config first and then looks in the app's .config or does it decide some other way?

Posted

1 solution

It looks the applications config file.

 
Share this answer
 


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900