How to make one ASP.NET MVC site "derive" from another.
Posted
by Rob Levine
on Stack Overflow
See other posts from Stack Overflow
or by Rob Levine
Published on 2010-05-19T16:22:53Z
Indexed on
2010/05/21
16:30 UTC
Read the original article
Hit count: 242
My question is similar to "ASP.NET 2 projects to share same files", but with an ASP.NET MVC slant.
Basically, we have two sites, one being based mostly on the other (roughly 90% views, controllers, images, in the second are identical to the first). However, in some cases, the views may be different, or a controller in the second site may be different to the first.
Are there any simple ways of achieving this in ASP.NET MVC?
So far, we've looked at using linked files to have two totally seperate projects where the second project shares the files it needs from the first.
One problem with this approach is that most pages in the second project don't literally exist in the virtual directory, it makes debugging a pain - you have to publish in order to generate the files so you can debug.
Does anyone have any better approaches, or ways this approach can be simplified?
© Stack Overflow or respective owner