Can anyone tell me how to follow a modular architecture and create MVC3 Razor views and controllers in a separate class library project?
I think it's a very common requirement for developing business applications. I checked the post of Plug-in architecture for ASP.NET MVC, but it doesn't work for MVC3 Razor views. The error message is confusing:"view is not found …or its master was not found or no view engine supports the searched locations. The following locations were searched: ….". I have no idea if the view/_ViewStart can be located. I also checked the post of A plugin framework with ASP.NET MVC3 and embedded Razor views, but it doesn't give any sample code.
The Umbraco CMS http://umbraco.codeplex.com/ implemented the plug-in architecture, but it's a too heavy framework to have in my project.
Can anyone give a small sample to show how to follow a modular architecture and create MVC3 Razor views and controllers in a separate class library project? Thx in adv.