[英]Updating to latest stable version in Ninject removes NinjectWebCommon.cs (Web API v2)
I think I may be losing my mind, I've updated all Ninject
packages to the latest stable version which then removes NinjectWebCommon.cs
我想我可能会失去理智,我已经将所有Ninject
软件包更新为最新的稳定版本,然后删除了NinjectWebCommon.cs
"We" have a fair few Live Web API projects running with an earlier version and all is working great! “我们”有几个使用较早版本运行的Live Web API项目,并且一切正常! 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? 真的,我想问题是经过一个小时的“ Google搜索”之后, Ninject
更新中是否缺少一个nuget
软件包?
To reiterate when updating all Ninject
packages it removes the NinjectWebCommon.cs
要在更新所有Ninject
软件包时重申,它会删除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. 显然NinjectWebCommon.cs
不随3.3.0一起提供,但仍然是必需的。 When updating, I recommend to: 更新时,我建议:
Alternatively write your own implementation like documented in this answer . 也可以编写自己的实现, 如此答案中所述 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.