简体   繁体   English

如何分离大型ASP.NET MVC3应用程序?

[英]How to separate large ASP.NET MVC3 App?

I have seen different approaches to separation of MVC3 app, but most of them feel 'hacky' or require extra dependencies, like portable areas from MvcContrib. 我已经看到了分离MVC3应用程序的不同方法,但大多数都感觉“hacky”或需要额外的依赖,比如来自MvcContrib的便携式区域。 I remember there was a way to separate large app into separate modules in MVC2 Beta or RC, but in release this feature doesn't work. 我记得有一种方法可以将大型应用程序分成MVC2 Beta或RC中的单独模块,但在发布时此功能不起作用。 So is there any recommended way to separate large projects? 那么有没有推荐的方法来分离大型项目?

PS I have seen Orchard. PS我见过乌节。 But its module infrastructure is a bit too complicated for my needs. 但它的模块基础设施有点太复杂,无法满足我的需求。

区域不适合您的需求吗?

What about trying with making seperate directory and modify rewrite rule as per that. 那么尝试制作单独的目录并修改重写规则。 Though I haven't tried these structure on asp.net mvc, but did in php mvc frameworks, worked fine there. 虽然我没有在asp.net mvc上尝试过这些结构,但在php mvc框架中做过,在那里工作得很好。 I myself new to asp.net mvc and will like to get best answer of this question also. 我自己也是asp.net mvc的新手,并希望得到这个问题的最佳答案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM