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

Gert Driesen gert.driesen at pandora.be
Sun Apr 4 09:47:05 EDT 2004


----- Original Message ----- 
From: "Ben Maurer" <bmaurer at users.sourceforge.net>
To: "Gert Driesen" <gert.driesen at pandora.be>
Cc: "Mono Development" <mono-devel-list at lists.ximian.com>
Sent: Sunday, April 04, 2004 3:38 PM
Subject: Re: [Mono-devel-list] CLS-compliance check breaks NDoc build


> 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.

I think there are two issues here : missing CLSCompliant attributes (on both
assembly and class/member level), and the ArgumentException that is thrown,
no ?

I'll submit a bug report (with patch) for the swf assembly.

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

I'd rather keep both the Mono and .NET versions of NDoc and NAnt identical
(and eventually move to a single set of binaries), but thanks for the
pointer though ..

Gert

>
> -- 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
>
> _______________________________________________
> 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