I was trying Ninject in a Asp.net Mvc application and I was wondering what the best practice is for using Ninject if you have more than 1 project in your solution.
I guess all projects need some kind of Loader which you initialize in the global.asax?
Kind regards,
Pickels
In general you should only be bringing in an IoC container (in this case Ninject) in the actual executable (or ASP.NET application). Reusable libraries should be agnostic toward which container is used.
To use Ninject in an ASP.NET MVC application specifically, you should use the Ninject controller factory in the Ninject.Web.Mvc extension.