5

Currently there are quite a few DI/IoC-frameworks for .NET out there (http://www.hanselman.com/blog/ListOfNETDependencyInjectionContainersIOC.aspx). I find it quite hard to choose. Therefore I wanted to measure the public opinion and see which framework is the most popular - so please post your favorite framework here and let the people vote...

JacobE
  • 8,021
  • 7
  • 40
  • 48

7 Answers7

4

I'm currently using Castle.Windsor. Mainly because of the integration it has with the Rhino Tools library.

Scott Muc
  • 2,873
  • 27
  • 38
1

I've been watching Kzu (creator of Moq)'s screencast series as he develops Funq - a DI framework that makes extensive use of lambdas the same way Moq does. No release yet but I'm looking forward to trying it out.

Matt Hamilton
  • 200,371
  • 61
  • 386
  • 320
1

StructureMap

I love the fact that I can configure it all using the fluent interface (aka Configuration DSL). Typesafe configuration is a must when I do refactoring.

BjartN
  • 5,327
  • 6
  • 28
  • 32
1

Autofac. Type-safe and plays well with code-refactoring. Apart from the boiler-plate stuff, I found the delegate factories to be very useful.

Nick Gunn
  • 724
  • 5
  • 10
0

Use Windsor or Unity, and decide based on a POC

Unity is not so bloated up so far, you could go with that based on your project type - especially if you are using unity dependent frameworks like CompositeWPF

See another thread on SO about the same, Enterprise Library Unity vs Other IoC Containers

Community
  • 1
  • 1
amazedsaint
  • 7,642
  • 7
  • 54
  • 83
  • I'd just add that Composite WPF is not dependent on unity - all unity support is provided by a UnityExtensions module which you don't have to reference. You can (and I do) use Castle or another container. – Paul Stovell Feb 23 '09 at 20:02
0

Have a look at Structuremap which is a Dependency Injection / Inversion of Control tool for .Net

tanascius
  • 53,078
  • 22
  • 114
  • 136
Paco
  • 8,335
  • 3
  • 30
  • 41
0

Unity It's simple and unintrusive, yet type-safe. And it is created by Microsoft Pattern & Pratices group.

toxvaerd
  • 3,622
  • 3
  • 24
  • 29