在一个解决方案中的多个项目的MVC [英] Multiple MVC projects in a single solution
问题描述
我看到NopCommerce项目,有一个解决方案,并有在溶液中的多个的MVC项目。
I have seen in NopCommerce project that there is a solution and there are multiple MVC projects within the solution.
我有一些关于它的问题,例如:
I have some questions about it such as :
这怎么可能共享主要布局,或根据需要使用不同的布局?结果
这怎么可能使用控制器/模型等不同的MVC项目?
How is it possible to share a main layout, or use different layout on demand?
How is it possible to use Controllers/Models etc. in different MVC projects?
我也想一个主项目和多个子MVC项目。如何能同时共享组件这样做?
I would also like one main project and multiple sub MVC projects. How can this be done while sharing components?
任何想法?指针?
注:在地区不感兴趣
推荐答案
是的。参见:<一href=\"http://stackoverflow.com/questions/401376/asp-net-mvc-put-controllers-into-a-separate-project\">asp.net MVC把控制器变成一个单独的项目
我这个工作我和能够使用的控制器在一个插件式架构。
I've done this myself and was able to use the controllers in a plug-in type architecture.
至于模型,他们只是正常上课。他们可以在任何项目以任何理由使用。没有什么特别之处他们。
As for the models, they are just normal classes. They can be used in any project for any reason. There is nothing special about them.
这篇关于在一个解决方案中的多个项目的MVC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!