Please Suggest an Easy to use DI framework for .net. I am using mvc2.
2
-
Voting to close. This is purely argumentative. – TomTom Dec 27 '10 at 12:29
-
duplicate: stackoverflow.com/questions/21288/… stackoverflow.com/questions/555943/… and many more. – Mauricio Scheffer Dec 27 '10 at 17:12
Add a comment
|
in our project also ASP.NET MVC 2 we using Ninject it is really nice and has a pretty cool name :)
Scott Hanselman has an great list on his blog. List of .NET Dependency Injection Containers (IOC)
Phil Haack has a blog post about using StructureMap with TDD and Dependency Injection with ASP.NET MVC. It's a little old (12/2007) but still a good read on the topic.
I like Castle Windsor, and it's performant and stable. But there is a lot of frameworks out there, that does almost the same thing with small differences in features.
-
IoC framework should be small, packed in one assembly, do just what it needs to do, nothing more. Castle Windsor looks like overkill to me. If you need just a knife, why do one have to buy a whole toolbox? – Lex Lavnikov Dec 27 '10 at 12:45
-
@Lex: Windsor is Castle.Windsor.dll + Castle.Core.dll. Are you sure you mean two assemblies is overkill? Have you ever actually used Windsor? – Mauricio Scheffer Dec 27 '10 at 17:14
-
No, it was enough to open these two libraries in Reflector to see what's there. 80% has nothing to do with IoC. – Lex Lavnikov Jan 4 '11 at 17:22