I have been learning ASP.Net MVC and Ninject via the book Pro-ASP.Net MVC5 Adam Freeman.
I ran through the samples with no issues and now I am trying to create my own app following the pattern and all of the sudden something weird is (not) happening.
Through NuGet I am instructed to add the following packages:
Ninject
Ninject.Web.Common
Ninject.MVC3
Part of the result is that is supposed to add the file NinjectWebCommon.cs to the App_Start folder. That happened correctly with the sample script initially, but no longer.....that is, it didn't happen with my own app, and then I went to repeat the script directly from the book and again, it did NOT create the file.
I can manually create the file, but there are a couple of lines that don't resolve
[assembly: WebActivatorEx.PreApplicationStartMethod(typeof(SportsStore.WebUI.App_Start.NinjectWebCommon), "Start")]
[assembly: WebActivatorEx.ApplicationShutdownMethodAttribute(typeof(SportsStore.WebUI.App_Start.NinjectWebCommon), "Stop")]
and before I go down the rabbit hole of trying to figure out why, I would request some input as to why this file is not creating on it's own like it used to (I am concerned that something else that should be happening is not).
As additional information, the book is a little dated and there are some version differences as noted below:
Tool/Book version/latest-I'm using version
Ninject / 3.0.1.10 / 3.2.2
Ninject.Web.Common / 3.0.0.7 / 3.2.3
Ninject.MVC3 /
3.0.0.6 / Doesn't exist, used Ninject.Web.Mvc.FluentValidation 3.2.0
Thanks in advance.
Ed