简体   繁体   中英

Installed Ninject and Ninject Web Api 2 extension - doesn't contain NinjectWebCommon.cs

I'm trying to use Ninject for dependency injection in my Web Api app, but there is no NinjectWebCommon.cs file in my App_Start folder.

I've tried uninstalling both Ninject and the web api extension, without any luck.

Am I missing something here?

Did you also install the Ninject.Web.Common package?

https://www.nuget.org/packages/Ninject.Web.Common/

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM