I have a solution with three projects.
- Project1 (Windows Application)
- Project2 (Windows Application)
- Project3 (Class Library)
Project1 and Project2 have their own app.config files with appSettings. Now I want the add some appSettings in the Project3. But I don't want the write the new settings in both app.config files. I want a new configfile/section for my shared solution. How can I create my own config file in Project3 and reference from Project1 and Project2?
Here is a working example. It's not perfect, but it's working:
Add the config File as a Link the Project1 and Project2
Add the following code in your app.config (Project1 and Project2):