开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜