I am a Java developer and I use Guice heavily. Now I’d like to learn C# but to my surprise I have not found an equivalent to Guice. I have just found tools like Ninject, Unity, StructureMap but I am looking more for a tool like Guice. I do not want to write down all my registrations manually… so what are the best options?
Share
The one I like the most is Ninject. It has a plug-in to auto-register components based on conventions.
I am actually writing an open source library to auto-register components; it is designed to support most of the current IoC containers we have in .NET. This is the link in case you are interested: https://github.com/jupaol/NAutoRegister (check the Developer Branch).
With AutoFac you can register components easily as well.
I have checked out Guice and it’s simply awesome. A good initiative would be to port Guice to .Net, just like many other Java tools.