Is it possible to have a Views folder in an MVC app and also a Views folder in a View Library?

Aug 29, 2012 at 4:59 PM
Edited Aug 29, 2012 at 5:27 PM

Hi, 

Is it possible to have a Views folder in an MVC app and also a Views folder in a View Library?

My question is because I want to create pre-compiled views for reuse in several MVC apps but I also want  to have and use views (NO pre-compilled views) in a MVC app. What I want to accomplish is Multi-Tenancy for views and for this I need to have a Views folder structure in my main and other MVC Web Apps  and a Views folder structure in a View Library (Pre-compiled views for reuse)  


Thanks in advance for your help

Coordinator
Aug 29, 2012 at 6:37 PM

Yes, this should work fine. See an example app that does this here.

Aug 29, 2012 at 8:30 PM
Edited Aug 29, 2012 at 8:43 PM

Thanks for your response.

Now creating a prototype (two separate solutions - One for as the view library and the other as the MVC 4 web app project) to replicate the sample you provided I am having a problem. I posted the issue under a previous discussion titled"Views not being found"