1

On our current WPF project, we've been performing dependency injection using the Ninject IOC tool.

We want to target the .NET Framework Client Profile for a better download/install experience. The problem is that Ninject seems to reference libararies such as System.Web which are NOT in the Client Profile.

Can anyone recommend an IOC container that can target the .NET Framework Client Profile (3.5 or 4) ?

casperOne
  • 73,706
  • 19
  • 184
  • 253
Rox Wen
  • 253
  • 1
  • 4
  • 12
  • Since the client profile is new, I'd guess that nobody who makes an IOC is targeting it just yet. You could always grab the source of OS IOC libraries (such as Unity) set the targeting yourself and compile, fixing any errors. Methinks any IOC targeting Web is using the Cache; the cache has been moved into the client framework IIRC so that would be easy to fix... –  Jun 16 '10 at 13:47

2 Answers2

2

Autofac supports both 3.5 and 4.0 Client Profile.

Nicholas Blumhardt
  • 30,271
  • 4
  • 90
  • 101
0

Try really lightweight and simple Funq DI container. It was initially created for the Mobile Application Blocks, so I believe it would be suitable for your purposes. (or at least idea of DI container on lambdas)

Yauheni Sivukha
  • 2,586
  • 20
  • 22