即建立单ASP.NET MVC应用程序的多个ASP.NET MVC项目 [英] Multiple ASP.NET MVC projects that builds as single ASP.NET MVC Application

查看:210
本文介绍了即建立单ASP.NET MVC应用程序的多个ASP.NET MVC项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们希望我们的大asp.net MVC Web应用程序分割成多个Visual Studio项目,使每个团队可以独立于他们的Visual Studio项目。

We want to split our large asp.net mvc web application into multiple Visual Studio projects so that each team can independently on their visual studio project.

期望中的结构是:


  1. ASP.NET MVC应用程序,负责基本UI

  2. 模块1 - VS项目(这是否需要成为一个ASP.net MVC应用程序或.dll?)

  3. 模块2 - VS项目(这是否需要成为一个ASP.net MVC应用程序或.dll?)

  4. 等等....

每个模块应该包含它自己的控制器和放大器;次是负责模块的运作。 ŧ

Each module should contain it's own controller & views that are responsible for functioning of the module. T

如何在多个项目拆分ASP.NET应用程序,然后在构建过程将其合并为一个单一的网站?

How to split the ASP.NET Application in to multiple projects and then merge them as a single website during build process?

推荐答案

ASP.NET MVC V2有一个称为区域功能,它可以让你有由主应用程序引用独立的项目。检查出ScottGu的<一个href=\"http://weblogs.asp.net/scottgu/archive/2009/07/31/asp-net-mvc-v2-$p$pview-1-released.aspx\">post.

ASP.NET MVC V2 has a feature called Areas which allows you to have separate projects referenced by the main application. Check out ScottGu's post.

这篇关于即建立单ASP.NET MVC应用程序的多个ASP.NET MVC项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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