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

Commented Unassigned: Unnecessary using statement in every generated file [161]

$
0
0
In every generated file, I get a list of `using` statements. The last one is for the assembly itself, so if the file is in the `Foo.Bar.Baz` assembly then I get `using Foo.Bar.Baz;`.

Problem is, there are no classes in that (root) namespace, and so it doesn't compile. My classes are in child namespaces, and the views are also in child namespaces.

I assume it's inserted automatically just as a failsafe. But that blind failsafe breaks in my case.

How do I fix this?
Comments: > , the standard Razor engine should be adding them too. Yup, we basically do what the Razor host in Mvc \ WebPages does.

Viewing all articles
Browse latest Browse all 525

Trending Articles



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