[Mono-bugs] [Bug 73516][Nor] New - Cannot add .netmodule files to an assembly

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 9 Mar 2005 12:21:03 -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 alfius@freemail.gr.

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

--- shadow/73516	2005-03-09 12:21:03.000000000 -0500
+++ shadow/73516.tmp.24697	2005-03-09 12:21:03.000000000 -0500
@@ -0,0 +1,60 @@
+Bug#: 73516
+Product: Mono: Compilers
+Version: 1.1
+OS: 
+OS Details: mono 1.1.4
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: alfius@freemail.gr               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Cannot add .netmodule files to an assembly
+
+The -addmodule:MODULE option in mcs 1.1.4 doesn't seem to work correctly.
+
+For example:
+
+---- Adder.cs ----
+namespace n1
+{
+        public class Adder
+        {
+                int Add(int x, int y)
+                {
+                        return x+y;
+                }
+        }
+}
+-----------------
+
+---- main.cs ----
+using n1;
+using System;
+
+public class ModTest
+{
+        
+        public static void Main(string[] args)
+        {
+                Adder a=new Adder();
+                Console.WriteLine(a.Add(2,3));
+        }
+
+}
+-----------------
+
+Actual Results:
+$ mcs -target:module Adder.cs
+$ mcs -addmodule:Adder.netmodule main.cs
+main.cs(1) error CS0246: The namespace `n1' can not be found (missing
+assembly reference?)
+Compilation failed: 1 error(s), 0 warnings
+
+Expected Results:
+The code should compile. It works under MS.NET.