How do you put views and content in a separate assembly that can be referenced from a MvcApplication?
AFAIK, there isn't a straight forward way using webforms (.aspx) as the view. However you can use other view engines (for example Stringtemplate) and embed the pages and images as resources into the dll. You will need to implement:
- Your own view engine
- Image and other resource (css, js etc.) serving controllers
Hope it makes sense...
quite simple, when you handle your routing -> route it to the assembly and class that handles this.
but don't forget you have to implement a few things there. i assume you got this figured out.
It sounds like you're talking about portable areas. Craig Shoemaker's Polymorphic Podcast had a recent episode featuring Jeffrey Palermo and Eric Hexter, and they discussed portable areas and what they are.
A link to an article at Los Techies appeared in the show notes, which is a great 'how-to' for getting started with working with portable areas.
The short answer is that you need to compile a project with the proper dependencies, and set the build action on all views as embedded resources.