[Mono-dev] CS0006: Cannot find assembly `mgnat.dll'

Laurent GUERBY laurent at guerby.net
Sat Nov 12 14:47:01 EST 2005


Hi, I'm trying to get the Ada to C# compiler[1] to work under
SuSE Linux 9.3 with mono 1.1.10-2.novell.

Using ilasm and *.il files generated by the A# compiler I'm able
to create the mgnat.dll assembly:

$ cat *.il > ada_lib.msil
$ ilasm /debug /dll /key=$(DLL_DIR)/TestKey.snk /output=mgnat.dll ada_lib.msil
$ ls -l mgnat.dll
-rw-r--r--  1 guerby users 973824 2005-11-12 20:29 mgnat.dll

But then I cannot use it (same directory):

$ mcs /debug /r:mgnat.dll /t:library /out:mgnatcs.dll ada.cs
error CS0006: Cannot find assembly `mgnat.dll'
Log:

Compilation failed: 1 error(s), 0 warnings
$ cat ada.cs
namespace ada {
}
$ 

Using strace it looks like mcs is opening the mgnat.dll file
successfully, any idea on what I'm doing wrong? Is there
a tool to validate mgnat.dll?

In case the file is needed, it is availble here (970kB):
http://guerby.org/ftp/mgnat.dll

Thanks in advance,

Laurent

[1] http://www.martincarlisle.com/a_sharp.html
needs some Makefile editing and file cleaning to work
as it originally was developped on MS Windows / MS C#




More information about the Mono-devel-list mailing list