Amenti
Amenti

Reputation: 1560

IoC container for Portable Class Libraries

Is there any IoC container out there which supports (or can be made to) the Portable Class Libraries yet?

I fiddled around with some (SimpleInjector, AutoFac) but they always had one dependency or another which prevented me from using them as a portable class library.

I'm fairly new to the topic so I maybe totally on the wrong track here.

In more detail:

I want to create a library containing my models (and later viewmodels) for a MMVM app which should run on .Net 4.5, WP7 and WinRT. This models should be saveable as files. Since the implementation of the particular save algorithms (desktop filesystem, isolated storage) is specific to every platform I hoped to utilize an IoC container to decouple it from the models themselves.

Upvotes: 9

Views: 3460

Answers (1)

Foo42
Foo42

Reputation: 3144

I believe there is a beta of autofac for portable libraries: http://code.google.com/p/autofac/downloads/detail?name=Autofac-2.6.1.841-Portable.zip

Upvotes: 7

Related Questions