Please Suggest an Easy to use DI framework for .net. I am using mvc2.
Asked
Active
Viewed 734 times
0
-
Voting to close. This is purely argumentative. – TomTom Dec 27 '10 at 12:29
-
duplicate: http://stackoverflow.com/questions/21288/which-net-dependency-injection-frameworks-are-worth-looking-into http://stackoverflow.com/questions/555943/which-net-dependency-injection-framework-do-you-use and many more. – Mauricio Scheffer Dec 27 '10 at 17:12
3 Answers
4
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.

Larry Hipp
- 6,205
- 3
- 26
- 31
2
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.

driis
- 161,458
- 45
- 265
- 341
-
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 04 '11 at 17:22