[Mono-devel-list] CLS-compliance check breaks NDoc build

Gert Driesen gert.driesen at pandora.be
Sun Apr 4 05:50:21 EDT 2004


The NDoc (http://ndoc.sourceforge.net) build on Mono/Linux is broken due
to the recent addition of CLS compliance checks in Mono.

When building NDoc (cvs) using NAnt (cvs) I now get the following
failure :

/home/gert/ndoc/src/Core/AttributesForm.cs(47) error CS3009:
'NDoc.Core.AttributesForm': base type 'System.Windows.Forms.Form' is not
CLS-compliant
                         
Unhandled Exception: System.ArgumentException: Key duplication when
adding: System.Windows.Forms.Form
in <0x00263> System.Collections.Hashtable:PutImpl (object,object,bool)
in <0x00019> System.Collections.Hashtable:Add (object,object)
in <0x0013e> Mono.CSharp.AttributeTester:IsClsCompliant (System.Type)
in <0x00065> Mono.CSharp.TypeContainer:VerifyClsCompliance
(Mono.CSharp.DeclSpace)
in <0x0001d> Mono.CSharp.MemberCore:Emit (Mono.CSharp.TypeContainer)
in <0x0016f> Mono.CSharp.TypeContainer:Emit ()
in <0x0086e> Mono.CSharp.RootContext:EmitCode ()
in <0x00bc5> Mono.CSharp.Driver:MainDriver (string[])
in <0x00022> Mono.CSharp.Driver:Main (string[])

Let me know if you need more detailed instructions for reproducing this
issue.  

Gert




More information about the Mono-devel-list mailing list