Which Dependency Injection frameworks are compatible (and tested) against the Mono 2.4.2.3 runtime (Release Notes)?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
This SO question relates to using NHibernate with MONO 2.4:
ASP.NET MVC 1 and 2 on Mono 2.4 with Fluent NHibernate
I have used Unity with Mono 2.4.2 successfully before.
Hope this helps :)
回答2:
Castle Windsor is.
回答3:
Autofac most certainly is.
回答4:
Worth noting that over 3 years down the line I'm yet to come across an IoC Container that doesn't work on Mono.
Note: Reflection based approaches to registration will not likely work on AOT compilation based platforms such as iOS via MonoTouch.