What is the official line on how to make sure a razor view is rendered as latest? At the moment it appears I am getting a cached version.
I have a view, that renders a partial and this partial renders a template.
Save, compile, iis reset:
Same old view!
Stop it now!
Let me give u an example
@Html.EditorForModel(“~/Views/Shared/EditorTemplates/Object.ascx”)
Renders Object.ascx
Remove that line renders nothing (good)
Then adding
@Html.EditorForModel(“~/Views/Shared/EditorTemplates/Huh.cshtml”)
Renders Object.ascx
=Insanity.
Found it: it has to be called Object.cshtml and no other control called “Object” can live in that folder (e.g. Object.ascx).