Ninject.Web.Common.WebHost 兼容 .net 核心 2.0

Ninject.Web.Common.WebHost compatible .net core 2.0

我正在尝试将 Ninject 与针对 .net Core 2.1 的新 API 项目一起使用
每当我使用 nuget

引用库时,我都会收到此警告

"Package 'Ninject.Web.Common.WebHost 3.3.1' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.1'. This package may not be fully compatible with your project."

我假设图书馆还没有赶上,或者我可能遗漏了什么。 我是运气不好还是有解决方法。

提前致谢

绝无仅有。此包基于来自 .net 框架的旧 ASP,但 .net 核心带来了全新的 ASP 框架及其自己的 DI 容器,因此此包不再兼容。如果您仍想在 asp.net 核心中使用 Ninject 容器而不是默认容器,请检查以下内容: How to integrate Ninject into ASP.NET Core 2.0 Web applications?