Open johnjaylward opened 5 years ago
Same issue here, we have lots of child projects not updating the resource, and it since some are loaded dynamically it causes a lot of Ninject version miss match.
@dlebee I switched to https://github.com/simpleinjector shortly after opening this and have been happy ever since. Simple Injector also helped me find some configuration issues in unit testing that was difficult/impossible to find with Ninject.
See also #337, #326
Basically the problem comes down to the different packages requiring different version of the Ninject library. For my case, I was trying to bring Ninject into a Web.MVC project using the
Ninject.MVC5
package. A shared library I control was updated to useNinject
version 3.3.4. However,Ninject.MVC5
includesNinject.Web.Common.WebHost
version 3.3.0 which in turn includesNinject.Web.Common
version 3.3.0 which in turn includesNinject
version 3.3.3When loading the web project I would get the following error:
So next, I tried to update to update the internal dependency of
Ninject.Web.Common.Webhost
which also updatesNinject.Web.Common
. However that still failed becauseNinject
3.3.3 is still pulled in, not 3.3.4.Downgrading my library that was initially pulling in
Ninject
3.3.4 to instead useNinject
3.3.3 was the only solution that works.Is there any way you can either make the assembly versions more loosely coupled, or update the children projects to use the latest version of ninject?