>>NHibernate is doing the loading of log4net so as long as it has a reference to log4net your application doesn't have to worry about it. When you compile your app you will see the log4net dll copied over to your application's bin directory.
>
>How'd they do that is what I want to know? Normally, if I try to complile something that references a type which I don't add to the references folder of my project I get all kinds of unresolved references.
Factory loading...
You use a provider interface to code against in your application and it then needs the actual classes only if they are actually loaded and required.
I do this same thing with things like data providers that I'm not using like Oracle or Vista Db - they only get pulled in once I enable the support. This can be done in code (if you have interfaces) or if you're lazy with compiler switches (which is not a runtime solution obviously).
+++ Rick ---