Click here to Skip to main content
15,891,372 members
Articles / Web Development / ASP.NET

.NET 4.0 ASP.NET MVC 3 plug-in architecture with embedded views

Rate me:
Please Sign up or sign in to vote.
4.92/5 (60 votes)
8 Jul 2013CPOL5 min read 189.6K   11.5K   146  
MVC 3 plugin architecture with embedded razor views: steb-by-step description and demo application.
@{
    ViewBag.Title = "Home Page";
}

<h2>@ViewBag.Message</h2>
<article>
    <h4>Example usage</h4>
    <p>All the plugins dlls are compiled in the directory <i>PluginBin</i> on the same root with the solution file.</p>
    <p>The plugins are searched in the <i>plugins</i> directory inside the Web Application, the relative path to the solution file is <i>PluginTest.Web/plugins</i></p>
    <p>First make sure that the project is compiled and then copy the contents from <i>PluginBin</i> to <i>PluginTest.Web/plugins</i></p>
    <p>Make sure that the webserver is stopped or restart the webserver and run the application.</p>
    <p>Feel free to play with the plugins by deleteing one or more and then restart the application and see the results.</p>
</article>


By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
Germany Germany
.NET & JavaScript Senior Software Lead Developer & Architect.
Since 2005 worked with most of .NET technologies (Windows Forms, ASP.NET, WCF, WPF, XNA) and for some years passionate about JavaScript and client JavaScript Architecture.

Comments and Discussions