override default search paths of cshtml files
I try to minify my javascript in the cshtml razor files and save it as viewname.min.cshtml. Is it possible to override the search when I call return View()开发者_运维百科 or PartialView() in a controller to search first for a name.min.cshtml file?
You need to register a RazorViewEngine
with your own values for the ViewLocationFormats
property.
精彩评论