ConfigurationSection with multiple projects
Posted
by shivesh
on Stack Overflow
See other posts from Stack Overflow
or by shivesh
Published on 2010-05-26T13:39:31Z
Indexed on
2010/05/26
13:41 UTC
Read the original article
Hit count: 211
In my asp.net solution i have a couple of class library-projects that act as modules of the site.
In main project I have SiteConfigurationSection class that derives from ConfigurationSection.
I want all projects to be able to access and use this SiteConfigurationSection.
But class library projects can't access it because they obviously don't have a reference to the website itself.
Should create a special library-project for SiteConfigurationSection of maybe it's better to create a mini SiteConfigurationSection class in every project and encapsulate only the needed values?
© Stack Overflow or respective owner