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:
00990630
Views:
27
Ha! I know what you mean. I just had a birthday recently. Getting close to one of those decade marks.

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.

The actual loading of log4net happens somewhere in the NHibernate Configuration class. You should be able to view the Debug Output to see when it loads.

>I have been playing with NHibernate latley. It uses log4net which is an apache open source project.
>
>The interesting thing is that I don't have to add log4net as a reference to my project. My understanding is that NHibernate does an Assembly.Load() of log4net if needed.
>
>My question is, when the IDE/Compiler is running on this project, what doesn't it give you unreferenced error messages since the log4net types are loaded at run time?
>
>Does the compiler see the assembly.load() in the code and deal with that. Also, what if you load different assemblies depending on some config or something.
>
>Any help on this topic would expand my feeble and aging mind. Yes, my co-worker just reminded me that I am 3 months from marking another decade.
>
>BOb
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform