Hi,
< xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
We have a class library application that needs to read some application settings from app.config file.
In .NET V2 we have typed application settings. Considering the fact that ClassLibrary.DLL reads the main application’s config file, how can a ClassLibrary.DLL project have access to the main application’s typed config settings
Thank you,
Alan

Application settings.
yoges
I usually use a seperate xml config file for the dll. I then read the config file into a dataset and access the settings there. Hope this helps.
Kurt
Bren Besser
Take a look at http://forums.microsoft.com/msdn/ShowPost.aspx PostID=66478 and see if the solution I outline there may be useful for you...
Best regards,
Johan Stenberg
fenris
1. The dll could have its own settings class(es). If you want to override the setting defaults at runtime it would be done via the main app's app.config file.
2. The main app could pass settings to the dll via constructor parms, public properties, or other mechanism.