Partial view lookup by the RazorViewEngine does not work with Sitefinity OOTB.
If you take the valid default paths:
and change them to:
then the partial view lookup works as expected.
This should work out of the box. This solution is only a work-around to resolve this problem, but you shouldn't have to write work-arounds into your project in order to achieve the expected, default behavior of a key feature of the framework.
Regular view (i.e. not a partial) lookup does not require the additional paths to be added in order to function appropriately under the non-standard MVC foldering structure used by Sitefinity. I would expect the rest of the view file lookups to work as well.
Is this something that will be resolved in a future release?
The documentation for Sitefinity states:
"All MVC artifacts in Sitefinity should be stored under the Mvc folder. Everything under that folder has the same naming convention as in a new MVC project. Controllers, Views and Models are each in their respective subfolders."
So is the documentation wrong? Or is this an implementation oversight? The partial views work if you register the path for the folder structure suggested by the documentation, but the Editor Templates issue that I described in my other post (found here for posterity) can not be fixed by registering the additional paths. The only way to get them to work is to ignore the instructions found in the product documentation, and split your files into two areas of your project.