Extensible ASP.NET MVC Web Application

I need to write a web application with ASP.NET MVC 3 that should be fully modular and extensible. The module / extension will be, for example, a forum, blog, or content module.

I was thinking about using multi-project areas of MVC for this purpose, so I have the Extensions/ with .dll -s extension directory and on Application_Start (or maybe at an earlier stage), it loads all the extensions in this directory into the current AppDomain.

Is there a better way to do this? I mean, maybe not using MVC areas at all? Maybe using MEF? I have very little experience with MEF, and I would like to know, but I just don’t know if this fits my project. Perhaps using MVC + MEF areas?

As you can see, I'm pretty confused and would like some clarification :)

Thanks.

+4
source share
2 answers

I look something like that. I haven't started yet, but so far I've read this one , which seems promising.

It seems that MVC3 has specific interfaces for IoC, so you want to spend most of your time on MVC3 + MEF examples. Some of the older examples are less relevant.

If you want your views to be easily extensible, then this seems like a good idea.

0
source

I have used quite a few themes to use MEF with ASP.NET MVC. It works very well, but it is not polished as portable areas in the MVCContrib project say.

MVC3 + MEF: http://www.fidelitydesign.net/?p=259

MVC2 + MEF: http://www.fidelitydesign.net/?p=159

0
source

Source: https://habr.com/ru/post/1343856/


All Articles