I think I may be losing my mind, I've updated all Ninject
packages to the latest stable version which then removes NinjectWebCommon.cs
"We" have a fair few Live Web API projects running with an earlier version and all is working great! But having said that, when I try to remove and revert to an old version, we're hit with many assembly issues.
Really, I suppose the question is after an hour's worth of "googling", is there a nuget
package that I'm missing with the Ninject
updates?
To reiterate when updating all Ninject
packages it removes the NinjectWebCommon.cs
Current Packages:
<package id="Ninject" version="3.3.3" targetFramework="net461" />
<package id="Ninject.MVC5" version="3.3.0" targetFramework="net461" />
<package id="Ninject.Web.Common" version="3.3.0" targetFramework="net461" />
<package id="Ninject.Web.Common.WebHost" version="3.3.0" targetFramework="net461" />
<package id="Ninject.Web.WebApi" version="3.3.0" targetFramework="net461" />
<package id="Ninject.Web.WebApi.WebHost" version="3.3.0" targetFramework="net461" />
<package id="WebActivatorEx" version="2.0" targetFramework="net461" />
<package id="WebApiContrib.IoC.Ninject" version="0.9.3.0" targetFramework="net461" />
Hopefully I'm not missing the obvious and it's generally a problem/bug.
Thanks in Advance.
Apparently NinjectWebCommon.cs
is not shipped with with 3.3.0 but is still required. When updating, I recommend to:
Alternatively write your own implementation like documented in this answer .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.