Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RazorGenerator not generating the correct namespace

We're using RazorGenerator for our project. When I edit views, the generated files' namespaces are changed to ASP instead of the RazorGenerator's default, which is supposed to be the folder structure. We didn't change any settings for RazorGenerator (not even sure if there are settings) so I'm not really sure what happened since this happens to my machine only. I already uninstalled/installed the tool but the same thing happens. Anybody have a solution for this? Thanks!

like image 540
dork Avatar asked Feb 11 '15 03:02

dork


1 Answers

Hey i just had the same issue. According to this http://razorgenerator.codeplex.com/workitem/166 you should create a file in your views folder called razorgenerator.directives and add in it the following:

GeneratePrettyNames: true

and it will generate the correct namespace.

like image 69
Stella Avatar answered Nov 09 '22 11:11

Stella