我正在使用RazorGenerator预编译我的视图。我还想使用全局Razor助手(在App_Code目录中定义的cshtml文件中)。然而,编译出现了以下错误:
任何想法或建议都欢迎。
然而,智能感知似乎可以检测到助手方法。我已按照以下博客预编译Razor进行了编译。此外,我注意到助手文件KarbonHelper.cshtml实际上是预编译为预期位置的.cs文件。The name 'KarbonHelper' does not exist in the current context
obj\CodeGen\App_Code\KoolHelper.cshtml.cs
任何想法或建议都欢迎。