I have two sites quite similar that shares lot in common in some places but some other places are totally different. So i created three mvc4 applications MainSiteA, MainSiteB, SharedUI and using RazorGenerated for precompiling (and share) views among two sites. Current problem is my SharedUI view takes priority from a compiled or non-compiled view on the MainSiteA and I want it to make it vice-versa.
Having:
SiteA:
Views/Index.cshtml (a)
SiteB:
Views/Index.cshtml (b)
Views/Header.cshtml (b)
SharedUI:
Views/Index.cshtml (s)
Views/Header.cshtml (s)
Views/Footer.cshtml (s)
How can i make to access specific pages depending on site in this way:
SiteA
Index.cshtml (a)
Header.cshtml (s)
Footer.cshtml (s)
SiteB
Index.cshtml (b)
Header.cshtml (b)
Footer.cshtml (s)
I want MVC to look first on it's own MVC Application, if view is not found go a look on the shared library (SharedUI) for the view.