Chapter 22. Portable areas
This chapter covers
- Building a portable area
- Embedding views
- Distributing a portable area
- Creating an RssWidget portable area
- Integrating with a host using the bus
ASP.NET MVC 2’s areas allow us to structure the controllers and views within our application, organizing our projects hierarchically into folders and namespaces. Portable areas, a feature in MvcContrib, let us take that concept even further. Portable areas are like regular areas in that they’re a collection of controllers and views—segmented from other areas. But they’re also portable; the entire area is a separate assembly—typically deployed as a DLL file—and can be shared among several ASP.NET MVC 2 projects. Whereas areas allow us to segment our application, portable areas enable us to compose several applications together in one project.