I have a solution with an executable project and several DLL projects. There are system-wide parameters (file names, locations, numeric constants) that should be visible to everyone. (I expect to maintain them in an XML file with XmlTextFile.)
What I have tried:
I tried placing a class (Locale) in the executable project, but it was not visible to the DLL projects. I tried making references (and "using") in the DLL projects but this was rejected. I currently have the Locale class in an arbitrary DLL project and use references (with "using") in the other projects. This works but seems clumsy, and the executable project cannot refer to it (which is awkward and clunky--it needs to refer to these parameters too). I tried letting the executable refer to it, but this was rejected as "circular" (which it was of course). I would like to find a clean way to make these configuration parameters visible throughout the system. Thanks!