Can't find NinjectWebCommon in asp.net web api project

I am creating an asp.net web api project. I am using Ninject for a dependent converter. I am adding Ninject.Web.WebAPI from nuget. But I didn't find any NinjectWebCommon.cs in the App_Start folder

Do I need to install any additional package?

+2


source to share


1 answer


Install Ninject.Web.WebApi.WebHost

if you host a WebApi project via IIS - this will create NinjectWebCommon.cs

.



See the wiki for more information on the different types of WebApi projects. https://github.com/ninject/Ninject.Web.WebApi/wiki/Setting-up-an-mvc-webapi-application

0


source







All Articles