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

前端 未结 3 1251
[愿得一人]
[愿得一人] 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:24

    Just in case you may have missed the item even though it may actually be there for you I'll post this answer.

    In Visual Studio 2013

    1. Open Solution Explorer.
    2. Right-click on the project.
    3. Add New Item.
    4. VB or C#
    5. Web.
    6. General.
    7. Global Application Class.

提交回复
热议问题