title: Circular base class dependency error when using nant but not Visual Studio
body: <p>I have a C# project that compiles fine in Visual Studio, but when I use a nant build script I get the following error:</p>
  
  <p>"error CS0146: Circular base class dependency involving ClassA and BaseClassA"</p>
  
  <p>Here is the structure of the classes:</p>
  
  <pre><code>BaseClassA : IEnumerable&lt;ClassA.ClassB&gt;
  {
  }
  
  ----
  
  ClassA : BaseClassA
  {
    ClassB
    {}
  }
  </code></pre>
  
  <p>I understand the circular dependency part but VS is doing something to allow that to work. I would like to keep this structure and it compiles fine in Visual Studio. My question is, why is not compiling in nant and what can I do so it will compile in nant? </p>