[antlr-interest] Remarks about c# target

Sam Harwell sam at tunnelvisionlabs.com
Thu Apr 26 20:36:42 PDT 2012

Yes, the attribute is necessary. You should add the following attribute to
your project:

[assembly: CLSCompliant(false)]

Since there is no warning for redundancy, this will make it stop printing
that warning/error.

Sam Harwell
Owner, Lead Developer

-----Original Message-----
From: forumer at smartmobili.com [mailto:forumer at smartmobili.com] 
Sent: Thursday, April 26, 2012 5:15 PM
To: antlr-interest at antlr.org
Subject: [antlr-interest] Remarks about c# target


I have some remarks about the c# target because I am working on a project
where warnings are treated as errors and the generated class have the
following attribute [System.CLSCompliant(false)] but when I compile I get
the following error :

Error	3	Warning as Error: 'EnadaLexer' does not need a CLSCompliant 
attribute because the assembly does not have a CLSCompliant attribute

Is it really necessary to generate this attribute ?

List: http://www.antlr.org/mailman/listinfo/antlr-interest

More information about the antlr-interest mailing list