I have an umbraco 13 solution and it has 2 projects, I want to reuse my partial views in another project.
However, upon calling the partial views I encounter and error "InvalidOperationException: The partial view '~/Views/Partials/Content/Buttons.cshtml' was not found. The following locations were searched: ~/Views/Partials/Content/Buttons.cshtml".
These two projects has a reference.
Calling partial views from another project
I have an umbraco 13 solution and it has 2 projects, I want to reuse my partial views in another project. However, upon calling the partial views I encounter and error "InvalidOperationException: The partial view '~/Views/Partials/Content/Buttons.cshtml' was not found. The following locations were searched: ~/Views/Partials/Content/Buttons.cshtml". These two projects has a reference.
What I need to do to call the partial view?
Hi Rene,
In order to ship razor views with your feature DLL you need to make your feature DLL a razor class library.
In order to do this you will need to update you CSProj file with the following updates:
Update the project type:
Add support for Razor MVC:
I "think" that should do the job.
Nik
is working on a reply...