unity or unity.mvc4 for MVC4 application
asp.net-mvc-4, c#, c#-5.0, dependency-injection, design-patterns
Solution
You will want to add the Unity.MVC4 package, since it provides the integration between Unity and ASP.NET MVC 4. However, Unity.MVC4 depends on Unity, so by adding that you will get both packages.
You will also need something like this to configure the integration:
var container = new UnityContainer();
// configure container here (RegisterType, etc.), then make sure MVC 4 uses Unity...
DependencyResolver.SetResolver(new Unity.Mvc4.UnityDependencyResolver(container));
Problem
I wanted to add DI to my class library which is part of MVC4 web application. So I had the option of Unity, structuremap, ninject. I chose unity because it was mentioned in Asp.Net sample. When I searched Nuget for Unity I see there are multiple variation of Unity. Which one is suitable for my library, Unity or Unity.MVC4