I have two MVC projects one as a parent project and the other as a child project. The child project adds reference to the parent project. I like to use partial views from the parent project from the child project something like -
@Html.Partial("_GenericGreeting")
<-- in child project
_GenericGreeting.cshtml
<-- is in parent project
The child project is the project that starts up. Parent project i mean is like a base/shared project. RazorGenerator has been installed on both projects and each projects can be compiled into single assembles.
When I ran the project, i'm only getting this following error.
The partial view '_GenericGreeting' was not found or no view engine supports the searched locations.
If i copy the partial view and paste it into the child project it's fine but i don't want to duplicate the files.
I have tried this post but no luck but maybe i'm not adding it right.