[Mono-list] teste.exe - mscorlib.dll not found

Robert Jordan robertj at gmx.net
Sun Apr 12 04:53:24 EDT 2009


fozzie wrote:
> I managed to get past this problem by calling
> 
>     mono_set_dirs("C:\\Mono-2.4\\lib\\", "C:\\Mono-2.4\\etc");
> 
> in accordance with the "Embedding" instructions at
> http://mono-project.com/Embedding_Mono. I assume this is the correct way to
> do it in a production environment.
> 
> Are there any instructions on including the Mono deliverables in a custom
> install so that they land in the right directories?

If you provide the following minimal layout, mono_set_dirs ()
isn't necessary:

bin\app-that-embeds-mono.exe
bin\mono.dll
bin\libgmodule-2.0-0.dll
bin\libgthread-2.0-0.dll

etc\mono\  <- copy of C:\Mono-2.4\etc\mono\
lib\mono\  <- copy of C:\Mono-2.4\lib\mono\

Robert



More information about the Mono-list mailing list