Hi,
I'm having trouble acessing a setting I just created in my application configuration file. Two important things about what I'm trying to do:
- I'm trying to access the configuration from a different class library project named Main.dll, not the exe project that the configuration file belongs to named Shell.exe. I don't want to reference Shell.exe from Main.
- I'm referring to the <applicationSettings> group in my config file. Not <appSettings>. Normally you would access the setting like this Shell.Properties.Settings.Default.EnableMSRLogging but since I'm not referencing the project, I need to get to it directly through the config file (and I understand it won't be strongly typed).
I've been poking around System.Configuration and System.ConfigurationManager and cannot find a way to get to my new setting! The setting is below, how can I access it? Thanks!
<applicationSettings> |
<Shell.Properties.Settings> |
<setting name="EnableMSRLogging" serializeAs="String"> |
<value>True</value> |
</setting> |
</Shell.Properties.Settings> |
</applicationSettings> |