开发者

override default search paths of cshtml files

开发者 https://www.devze.com 2023-03-05 07:33 出处:网络
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 control

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消