如何Global.asax文件添加到ASP.NET项目MVC4? [英] How to add global.asax file to ASP.NET MVC4 project?

查看:226
本文介绍了如何Global.asax文件添加到ASP.NET项目MVC4?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的项目在 Global.asax中文件被删除。我希望有一个Global.asax文件添加到我谟。结果
但在添加新项对话框在Global.asax不存在的。

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 not exist.

推荐答案

万一你可能已经错过了,即使它实际上可能是有你我会后这个答案的项目。

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

在Visual Studio 2013

In Visual Studio 2013


  1. 开启Solution Explorer中。

  2. 在右键单击项目。

  3. 添加新项。

  4. VB C#

  5. 网站

  6. 常规。

  7. 全局应用程序类。

这篇关于如何Global.asax文件添加到ASP.NET项目MVC4?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆