在MVC项目中创建区域 [英] create area in MVC project

查看:30
本文介绍了在MVC项目中创建区域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 MVC4 Web 应用程序中,创建区域的最佳方法是什么?它可以自动化还是创建控制器、查看文件夹等的手动过程?

In an MVC4 web application, what is the best way to create an Area? Can it be automated or is it a manual process of creating the controller, View folder etc?

推荐答案

在解决方案资源管理器中右键单击 ASP.NET MVC 项目,然后在上下文菜单中选择 Add Area....然后输入区域名称并继续:

Right click on the ASP.NET MVC project in the solution explorer and select Add Area... in the contextual menu. Then type the name of the area and proceed:

这篇关于在MVC项目中创建区域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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