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: Yes, that value in the `web.config` is added by the MVC template, not RG. But my point is that RG reads that and adds it to the generated `.cs` file automatically, even if you don't need it. And if there are no classes in that namespace, it breaks your build.
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: Yes, that value in the `web.config` is added by the MVC template, not RG. But my point is that RG reads that and adds it to the generated `.cs` file automatically, even if you don't need it. And if there are no classes in that namespace, it breaks your build.