c# - configuration approach -


this question has answer here:

i have solution containing 13 projects. solution configured start multiple projects. lot of these project need go shared databases , web services.

my app.config , web.config files contain lot of duplication. eg when want change database need change configuration files in projects (app.configs) access database.

i wonder best approach tackle this? there way define solution wide configuration settings in .net?

i consider using class library project, referenced other projects, configuration purposes (if none of other libraries within solution shared projects), has shared/central app.config file associated it.

the library need expose configuration settings can consumed elsewhere within solution.

the team work has library of common helper classes, 1 of configuration helper described above. works because library included (well - unless inappropriate so) our projects seems "natural" place store shared settings.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -