[Mono-bugs] [Bug 69166][Nor] New - Unexpected CS3012 warning

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 5 Nov 2004 22:26:22 -0500 (EST)

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by gcomeau@hotmail.com.


--- shadow/69166	2004-11-05 22:26:22.000000000 -0500
+++ shadow/69166.tmp.30162	2004-11-05 22:26:22.000000000 -0500
@@ -0,0 +1,47 @@
+Bug#: 69166
+Product: Mono: Compilers
+Version: 1.0
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: gcomeau@hotmail.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: Unexpected CS3012 warning
+Description of Problem:
+When compiling a module, the compiler generates a warning asking for a 
+CLSCompliance attribute on the assembly
+Steps to reproduce the problem:
+$ cat CS3012Bug.cs
+using System;
+$ mcs  /target:module /out:out.nm CS3012Bug.cs
+CS3012Bug.cs(2) warning CS3012: You must specify the CLSCompliant 
+attribute on the assembly, not the module, to enable CLS compliance 
+Compilation succeeded - 1 warning(s)
+Expected Results:
+$ csc  /target:module /out:out.nm CS3012Bug.cs
+Microsoft (R) Visual C# .NET Compiler version 7.10.3052.4
+for Microsoft (R) .NET Framework version 1.1.4322
+Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.
+How often does this happen?