Reuse an MVC area in multiple MVC applications?
I have some common web pages that will be in multiple MVC applications. For those pages I'd like to reuse the same source code (controllers + views) between the different MVC web sites. What is the best way to go about doing this?
ASP.NET MVC areas seem like one possibility but they just a sub directory of the website project. Is it possible to reuse an MVC area in multiple MVC applications?
您可以将视图嵌入到程序集中并实现自定义VirtualPathProvider。
Look at "portable areas."
http://www.lostechies.com/blogs/hex/archive/2009/11/01/asp-net-mvc-portable-areas-via-mvccontrib.aspx
链接地址: http://www.djcxy.com/p/61856.html上一篇: 我的ASP.NET MVC应用程序是否需要“管理员”区域?
下一篇: 在多个MVC应用程序中重用MVC区域?