Quantcast
Channel: RazorGenerator Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 525

Commented Unassigned: @helper - wrong class name [171]

$
0
0
I have a razor helper in App_Code/MyHelpers.cshtml

The generated class name in obj/CodeGen is "public class _App_Code_MyHelpers_cshtml"

And of course all my views throw compile errors when referencing "MyHelpers.Something"
Comments: If I add @* GeneratePrettyNames : true *@ the generated class's namespace is still not accessible in the view-classes "namespace ProjectName.App_Code" Razor-helpers simply do not work out of the box. And there's no docs on how to work this around. This is an issue.

Viewing all articles
Browse latest Browse all 525

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>