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

Ben Maurer bmaurer at users.sourceforge.net
Sun Apr 4 09:38:03 EDT 2004


Hello,

The issue is that the clscompliant attribute has not been added to every
assembly. This may be a not-so-fun task for whoever tackles it, because
it is quite possible that we are missing [CLSCompliant (false)]
attributes in some places, which would require the person to find and
add these attributes.

For right now, a workaround is:
   -clscheck[+|-]     Disables CLS Compliance verifications

-- Ben

On Sun, 2004-04-04 at 05:50, Gert Driesen wrote:
> 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
> 
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list




More information about the Mono-devel-list mailing list