Add / Create Modular Architecture in ASP.NET 5 MVC 6

I want to create a modular architecture in MVC 6 with several interchangeable modules. Basically, to separate problems, by and large, some modules will be "base modules" (always on). But everyone should have the same level of isolation. Now that we have built the DI and IOC architectures, this can be very different.

I went through all the SOs and found MVC 4/5 and MEF solutions, but when I saw that the new Startup.cs has changed significantly and added new methods and best practices, I was wondering if there was a new way to do this.

However, I found an aspnet / Entropy project on GitHub, and they have an Mvc.Modules package that can do the trick, although this may not be an official thing in the near future.

EDIT: It seems that the Mvc.Modules mentioned above are not yet completely separated (controllers specifically), so it only does half the work.

+7
c # asp.net-mvc asp.net-core asp.net-core-mvc
source share
1 answer

Since MVC 6 is currently under development, it might be better to look at the source code (especially the tests) to find the features that you want to use when you cannot find what you need on the Internet.

MVC 6 supports DIs for both Controllers and Views . The following are tests for controllers and views .

+1
source share

All Articles