I have a project that is basically only an MVC project because it gives intellisense for Razor views and the library (Mvc.Mailer) depends on HttpContext
. Right now I have to load a page in order for the constructor in my MvcApplication
to run, or the Application_Start
, or Init
.
Is there a way to bootstrap the mvc app main method, or anything that is called before any page requests that doesn't require me to send a page load request?