Is there a way to access the settings file from a different project? For example, I have a solution that contains 2 projects (Lets call them Proj1 and Proj2). I want to access the application settings of Proj2 from Program.cs in Proj1. Is this possible?
Option A : parse the values out of the other assembly's configuration file (where the settings are stored)
Option B : create a public class in Proj2
that exposes the necessary values from its settings as static properties, then reference the assembly in Proj1
and consume the values from that class.
Option C : If you want to expose ALL the settings, you can modify the access of the settings class from internal
to public
.
I'm sure there other ways as well.