Embedded / Modular Development ASP.net MVC4

I need help developing an ASP.net MVC4 application with a plug-in. I tried using Areas for this, but it is not very convenient to use with connecting two different solutions. My goal is to develop a module application (A) that can be connected to any other web applications (X, Y, Z).

I need some guidance to achieve this.

thanks

+4
source share
3 answers

You can take a look at the following guide , which illustrates how you could embed Razor views as resources in class libraries. The idea is to write your own VirtualPathProvider that can serve your views from non-standard places (for example, views built into other assemblies).

And here is a sample application that uses the RazorGenerator library.

+1
source

You can use mef , we use mef in enterprise applications.

The Managed Extensibility Framework (MEF) is a composite layer for .NET that enhances the flexibility, serviceability, and testing capabilities of large applications. MEF can be used to extend third-party plug-ins, or it can bring the benefits of a seamlessly plug-in plug-in architecture to regular applications.

+1
source

This seems like a way to do it.

http://geekswithblogs.net/cokobware/archive/2013/01/15/asp.net-mvc-4-pluggable-application-modules.aspx

It seems like it can be continued to work well with Nuget.

0
source

All Articles