[Mono-dev] CS0006: Cannot find assembly `mgnat.dll'
Rafael Teixeira
monoman at gmail.com
Sat Nov 12 19:14:46 EST 2005
Normally such errors occur when the assembly p/invokes into native
code and the needed native library can't be found.
Set MONO_LOG_LEVEL="debug" and MONO_LOG_MASK="dll" and run again to
have more detailed information about the way mono is trying to load
your dll.
:)
On 11/12/05, Laurent GUERBY <laurent at guerby.net> wrote:
> 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#
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
--
Rafael "Monoman" Teixeira
---------------------------------------
I'm trying to become a "Rosh Gadol" before my own eyes.
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!
More information about the Mono-devel-list
mailing list