After creating the settings for each dllfile is created .dll.config. If this dllis part of an asp.net application, how to save these configurations separately for each dlland not merge them into web.config?
Example: I have a GMailSender class library (DLL) that sends email through GMail servers. All you need is an instance of GMailSender, for example:
GMailSender gms = new GMailSender();
gms.To = "myfriend@yahoo.com";
gms.Subject = "System.Configuration dilemma";
gms.Body = "Can anyone help me with this question ?";
gms.Send();
Let's look GMailSenderinside GMailSender.dll, and the configuration file GMailSender.dll.config, and the username and password of the GMail account are inside it.
I want this one to dlluse its own configuration file (both dll and config in the same directory, i.e. in the BinASP.NET application folder ) or next to the desktop application. Thus, GMailSender is independent of who uses it to retrieve its configurations (the current AppDomainone that loaded this one dll).
I want this without wheel repair (without custom configuration classes). I assume this is possible with System.Configuration, but this namespace is probably the worst of .NET!
Please do not say why you are designed to ...
plug-in, , , MEF .NET 4.0, Parts. MEF plugin-based.