2

I have several winforms applications that need access to the same app.config file. Instead of creating app1.config, app2.config, app3.config, etc... is there a way to somehow tell the ConfigurationManager object to read common.config instead?

2

2 Answers 2

0

You can use the ConfigurationManager Class to load an alternate config file by code.

ConfigurationManager Class (System.Configuration)

0

Each of your files will have a reference to their config files. If you want seperate config files, just mention their name at their call on the respective page, and they will redirect their controls to that configuration.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.