Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Assembly.Load question...
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00990569
Message ID:
00990861
Views:
18
>>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 ---
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Reply
Map
View

Click here to load this message in the networking platform