[Mono-bugs] [Bug 69167][Nor] New - Invalid error CS3013 in multi module assembly

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 5 Nov 2004 23:09:57 -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.

http://bugzilla.ximian.com/show_bug.cgi?id=69167

--- shadow/69167	2004-11-05 23:09:57.000000000 -0500
+++ shadow/69167.tmp.31345	2004-11-05 23:09:57.000000000 -0500
@@ -0,0 +1,65 @@
+Bug#: 69167
+Product: Mono: Compilers
+Version: 1.0
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: gcomeau@hotmail.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Invalid error CS3013 in multi module assembly 
+
+Description of Problem:
+=======================
+Failure to build multi module assemblies, presumably failing to detect a 
+CLSCompliant attribute. 
+
+Steps to reproduce the problem:
+===============================
+$ cat Compliant.cs
+using System;
+[module:CLSCompliant(true)]
+
+$ cat CompliantMain.cs
+using System;
+[assembly:CLSCompliant(true)]
+
+public class CompliantMain {
+        public static void Main(string[] args) { }
+}
+
+$ mcs /target:module /out:out.nm Compliant.cs
+Compliant.cs(2) warning CS3012: You must specify the CLSCompliant 
+attribute on the assembly, not the module, to enable CLS compliance 
+checking
+Compilation succeeded - 1 warning(s)
+
+$ mcs /addmodule:out.nm /out:app.exeCompliantMain.cs
+out.nm error CS3013: Added modules must be marked with the CLSCompliant 
+attribute to match the assembly
+Compilation failed: 1 error(s), 0 warnings
+
+
+Expected Results:
+=================
+$  csc  /target:module /out:out.nm Compliant.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.
+
+$ csc /addmodule:out.nm /out:app.exe CompliantMain.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? 
+===========================
+Always