I have a large .net mvc 2 project where we use the MvcContrib Portable Area. There is a main website on which many modules (PA modules) are downloaded.
The main application contains Site.Mater in its ~\Views\Shared folder. Each module also has its own Site.Master , which inherits from this core.
We are currently using something like:
<%@ Master Language="C#" Inherits="System.Web.Mvc.ViewMasterPage" MasterPageFile="~/Views/Shared/Site.Master" %>
After compilation, the view processes the main Site.Master right, since this is a relative path. Now I got a requirement for creating views at compile time. So I included MvcBuildViews = true in every PA web module project.
Of course, I get errors saying "/temp/Views/Shared/Site.Master is not found" .
How to save a portable region with embedded content and make sure that the views are error free?
Any idea?
source share