在一个解决方案中的多个项目的MVC

问题描述:

我看到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?

任何想法?指针?

注:在地区不感兴趣

是的。参见: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.