Autofac, Lokad Shared Libraries and Silverlight 2.0
People were asking about using Autofac .NET IoC Container and Lokad Shared Libraries under the Silverlight.
Well, the answer is "yes, you can do that!"
That's not official, yet, but the changes already are in the trunks.
Autofac
Autofac.dll can be compiled under Silverlight 2.0 and it already passes the NUnit tests. It looses the ability to leverage xml configs (due to limited functionality provided by the Silverlight), but you still have the rich code-based configuration API for wiring your Dependency Injection.
How to do:
go silverlight integrate
Dowload Autofac for Silverlight 2.0 (rev 464)
Lokad Shared Libraries
Lokad.Shared.dll can be compiled under Silverlight 2.0 and it already passes NUnit tests. Some System.Diagnostics functionality is lost along with a couple of helper extensions (nothing major).
How to build and test:
go-s2 /t:integrate;distrib
Download Lokad Shared Libraries for Silverlight 2.0 (rev 1529)
Caveat
Some time may pass before these projects will get an official announcement and continuous integration. But still, you are welcome to try and tell me what you think.
Tuesday, November 25, 2008 at 3:07
Reader Comments (2)
Thanks that was fast.
I will try it out in this week.
Just a question. Are you still using XPO or have you moved to NH or something else?
Martin,
I've definitely moved away from the XPO. NH is my favorite for now but I do not get to do a lot of development with it right now.