views:

52

answers:

0

Any way to have a Portable Area containing resources common to several MVC applications (when added as a reference to the project depending on it)? Wanting to have a 'Core' set of pages, styles, masterpages, javascript etc, but not found an easy way to do this.

Tried a few things to reference the master page, but not had any luck. The file is marked as an embedded resource.

When MasterPage is in Views/Shared in the Portable Area:

<%@ Page Language="C#" MasterPageFile="~/Areas/Core/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

or

<%@ Page Language="C#" MasterPageFile="~/Core/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

When in 'Content':

<%@ Page Language="C#" MasterPageFile="~/Core/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

or

<%@ Page Language="C#" MasterPageFile="~/Core/Content/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

Can this actually be done with Portable Areas, if not, what are the other options?