Ninject.MVC5 not generating NinjectWebCommon.Cs

后端 未结 9 1897
独厮守ぢ
独厮守ぢ 2021-02-12 11:50

I\'m developing a MVC5 project on Visual Studio 2017 Version 15.4. I\'m getting unexpected result here what I never faced before. I\'ve installed Ninject.MVC5 packa

9条回答
  •  误落风尘
    2021-02-12 12:32

    1. Go to: "Manage nuget Packages" contect menu of the project.
    2. Select installed Pakages(You must have installed ninject.mvc5 by then)
    3. Update all associated ninject packages already installed. this could include:
      ninject.web.common, ninject, ninject.web.common.webhost

    and you are home with NinjectWebCommon.cs in your App_Start folder

提交回复
热议问题