MVC 6 with vNext: Do we still need the Global.asax?
asp.net-core-mvc, asp.net-mvc
Solution
Global.asax is only present when there is a reason to hook into it. The default MVC6 project has no hooks into it, therefore it doesn't provide one. Just add new item, global.asax
I should also suggest, that I would avoid creating a global.asax unless you need absolutely need it. People tend to reach for Application_Start or Session_Start first when there are probably better places to do what you need to do. Consider creating an OWIN module, or consider adding your own Startup module.
Problem
I'm developing an application using MVC6. I noticed that the `Global.asax` file disappeared by default there is `startup.cs` file that calls the config. My question is how do I grab the `Application_Start` event method ? Do I still need the `Global.asax` ? Why has it been removed by default ?