简体   繁体   中英

Multiple MVC projects in a single solution

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 :

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?

I would also like one main project and multiple sub MVC projects. How can this be done while sharing components?

Any ideas? pointers?

Note: Not interested in Areas.

Yes it is. See: asp.net mvc put controllers into a separate project

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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