First try adding this in the namespace section of the system.web.webPages.razor section to the Web.config file in the Views folder (change MyProjectBaseNamespace with the name of your base project namespace - this is usually equal to the project name) or just take a look at the generated KoolHelper.cshtml.cs file, which namespace was used).
<add namespace="MyProjectBaseNamespace.App_Code" />
If there are still errors, try adding this directive to the first line of the helper in App_Code :
@* Generator: MvcHelper GeneratePrettyNames : true *@
RazorGenerator will then generate a class that inherits System.Web.WebPages.HelperPage with static @helper methods and with the class name the same as the file name.
Additional directive information: https://github.com/RazorGenerator/RazorGenerator#special-razor-directives
source share