Accessing another project's settings file

KrisTrip picture KrisTrip · Mar 30, 2010 · Viewed 46.5k times · Source

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?

Answer

Nour El-Dien picture Nour El-Dien · Mar 13, 2011

The answer if you are using C#:
The very simple answer is to right click on proj2, choose the settings tab. On the top, you will find the access modifier of the settings class is: internal, change it to public. Add a reference to the proj2 in the proj1 in order to see the proj2 Settings class. That's all.