RazorGenerator can't see custom cshtml helper

前端 未结 5 2162
小鲜肉
小鲜肉 2021-02-12 20:06

I\'m having a problem with RazorGenerator: it can\'t compile views that uses my custom helper:

App_Code/ViewHelper.cshtml

@helper test(System.Web.Mvc.Ht         


        
5条回答
  •  余生分开走
    2021-02-12 21:03

    It turns out that I needed to compile the helper itself to make it working.

    That didn't get me far though: RazorGenerator couldn't "see" Mvc namespace references. I've read that RG is not compatible with MVC version 5.0 or higher (or is it?).

提交回复
热议问题