[Mono-devel-list] Problem with adding netmodule files to an assembly

Zoltan Varga vargaz at gmail.com
Wed Mar 9 08:46:44 EST 2005


                                             Hi,

  This used to work in the past, but seems to have regressed. Please file a bug
report at bugzilla.ximian.com about this.

                 Zoltan

On Wed, 09 Mar 2005 15:18:36 +0200, alfius <alfius at freemail.gr> wrote:
> Hello,
> I am trying to use .netmodule files in mono 1.1.4 but I am running into
> problems. 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));
>         }
> 
> }
> -----------------
> I get:
> $ 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
> 
> Is this a problem with Mono or am I missing something?
> If it is a problem, is there another way I can use netmodules in mono?
> 
> Thank you,
> Alexandros
> 
> _______________________________________________
> 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