views:

141

answers:

2

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?

+1  A: 

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.

I'm sure there other ways as well.

Jay
I used Option B, which was the first thought I had as well. Thanks!
KrisTrip
A: 

i wanna example for above condition

Even
This is not really an answer, it should instead be a comment on either the question or the answer above. What would you like to see an example of? (P.S. asking nicely doesn't hurt instead of just stating that you "wanna example").
KrisTrip