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
  • 7,871
  • 7
  • 39
  • 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,833
  • 26
  • 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
  • 194,622
  • 60
  • 382
  • 318
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,137
  • 4
  • 27
  • 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,604
  • 6
  • 53
  • 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
  • 51,705
  • 21
  • 111
  • 133
Paco
  • 8,245
  • 3
  • 29
  • 41
0

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

toxvaerd
  • 3,392
  • 3
  • 23
  • 29