It really depends on the use. For a DLL, which is just part of the main application, no. However, for some plugin scenarios this may be cleaner to include a library-specific configuration whose loading you then need to provide for in the assembly itself. You can also do this by changing your own application configuration file, if any.
So, for example, you might have the following setting for the plugin:
<IPluginConfiguration> <PluginSpecificSetting name="PluginName">Value</PluginSpecificSetting> </IPluginConfiguration
or you can use the subsection in app.config, something like
<configuration> <PluginSettings> <Plugin1> <PluginSpecificSetting name="PluginName">Value</PluginSpecificSetting> </Plugin1> </PluginSettings> </configuration>
Either it will work, the former is slightly simplified to support in some cases, but there is more pain for loading at runtime, the latter requires a bit more configuration and maintenance, but it can be accessed more simply at runtime.
source share