Search code examples
c#.netasp.net-mvcdependency-injectionplugin-pattern

Where can I find an introduction to a Plugin Pattern for ASP.NET MVC?


I am trying to figure out how to implement a "Plugin" framework with asp.net mvc. I have done some reading and found that many people recommended MEF for a plugin framework in asp.net mvc.

link: http://blog.maartenballiauw.be/post/2009/04/21/ASPNET-MVC-and-the-Managed-Extensibility-Framework-%28MEF%29.aspx

However, I'm running into a problem where I can't use ViewModels and other basic mvc components. I know that right now I'm a bit over my head. I'm looking for tutorials, books, and examples of a plugin pattern in action, but I can't find anything. And, most of the MEF documentation I find is a bit over my head (codeplex) or its from years ago before MEF was released in .NET 4.

Any direction/help would be greatly appreciated!!! I am not looking for MEF exclusive information. I've just been focusing on MEF because it's part of the actual .NET framework. I don't know if it can handle what I'm looking for.

Can you recommend any intermediate level resources on this subject?


Solution

  • For your viewmodels, which web.config did you modify? the one at the root or the one in the /Views dir. You need to do the later

    Try this one: http://www.fidelitydesign.net/?p=104