I have 2 projects. I am trying to get some user-scoped application settings from project A and read them from project B. To do that I created the following class (in project A):
public class GeneralSettings
{
public string strLogFilesPath {get; private set;}
public GeneralSettings()
{
this.strLogFilesPath = GSN_PrestaBiz_UserUI_VS2013.Properties.Settings.Default.PathLogFiles;
}
}
And I then instanciate the class from project B :
GSN_PrestaBiz_UserUI_VS2013.GeneralSettings ps = new GSN_PrestaBiz_UserUI_VS2013.GeneralSettings();
but for some reason I just get the default value of the type every time, in this case (string) it's "" and for booleans that I have in another similar class it's "false".
But I know those are not the values of the settings. I tried to instanciate that same class from Project A (the same project the settings belong to) and it worked, the values are correct and not just the default ones.
What am I doing wrong ?