How to add global.asax file to ASP.NET MVC4 project?

前端 未结 3 1244
[愿得一人]
[愿得一人] 2021-01-07 16:28

In my project the Global.asax file is removed. I want add a global.asax file to my projet.
But in Add New Item dialog the Global.asax n

3条回答
  •  感情败类
    2021-01-07 17:12

    Any problem doing this:

    • Create a new empty project and get it from there (drag-and-drop from Windows Explorer to Visual Studio works fine), or
    • Add, say aspx page or any item, then rename accordingly (to get the code behind file, add and rename another item); in this case, they'll obviously be empty.

提交回复
热议问题