Z
Zoe Hart
Prior to VS2005 I configured my applications via the appSettings section of
the app.config file. When I developed a class library, I used
ConfigurationManager.AppSettings(settingName) syntax and the compiler didn't
care that no such settings existed yet. The settings were ultimately managed
in the app.config file of the host applicaton that used the classes in the
library.
I'm not sure how to handle configuration settings for a class library with
the new My.Settings feature.
If I don't set the settings up in the class library project the
My.Settings.SettingName syntax complains that SettingName is not a member of
My.Settings. But the class library will never execute outside the context of
some other application and that other application really "owns" the
configuration settings. So do I set them up in the class library just for
compile purposes and then set them up again in the host application and, at
runtime will the host application settings be the ones that the class
library classes actually honor?
Thanks,
Zoe
the app.config file. When I developed a class library, I used
ConfigurationManager.AppSettings(settingName) syntax and the compiler didn't
care that no such settings existed yet. The settings were ultimately managed
in the app.config file of the host applicaton that used the classes in the
library.
I'm not sure how to handle configuration settings for a class library with
the new My.Settings feature.
If I don't set the settings up in the class library project the
My.Settings.SettingName syntax complains that SettingName is not a member of
My.Settings. But the class library will never execute outside the context of
some other application and that other application really "owns" the
configuration settings. So do I set them up in the class library just for
compile purposes and then set them up again in the host application and, at
runtime will the host application settings be the ones that the class
library classes actually honor?
Thanks,
Zoe