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: I figured it out. The `..\Views\Web.config` file contains this line: <add namespace="Foo.Bar.Baz" /> And so RazorGenerator obviously includes that as a `using`. I don't want that behavior, so I removed that from the config. Not sure why this is automatically done, but at least it works for me now.
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: I figured it out. The `..\Views\Web.config` file contains this line: <add namespace="Foo.Bar.Baz" /> And so RazorGenerator obviously includes that as a `using`. I don't want that behavior, so I removed that from the config. Not sure why this is automatically done, but at least it works for me now.