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.config
s) 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
Post a Comment