[Mono-dev] Setting the assembly location(complete)

Robert Jordan robertj at gmx.net
Mon Jun 14 15:11:22 EDT 2010


On 14.06.2010 20:46, Thiago Padilha wrote:
>    This was working fine, some some days ago I made a modification and
> when I tried to run the following message appears :
>
> The assembly mscorlib.dll was not found or could not be loaded.
> It should have been installed in the
> `/home/thiago/Projects/Worklight/Work/linux/bin/mono/1.0/mscorlib.dll'
> directory.

It looks like you've compiled your assembly ("ManagedAssembly.exe")
for .NET 1.0 (with mcs).

>
>     The first time I tried to set the mono dirs, the path was :
> `/home/thiago/Projects/Worklight/Work/linux/bin/mono/2.0/mscorlib.dll'
> .
>
> Which I have installed correctly, I don't know why it is asking for
> 1.0 version of mscorlib.dll, but I would like to have control over
> that. In this case the C program is installed in
> /home/thiago/Projects/Worklight/Work/linux/bin/ and it looks for
> mscolib in the mono/2.0 subfolder, can I have control over which
> subfolders mono looks for assemblies?

You can control the profile version with mono_jit_init_version,
e.g. mono_jit_init_version("a domain name", "v2.0.50727");
Or assure that the assembly you pass to mono_jit_init() was
compiled for the desired profile.

Robert



More information about the Mono-devel-list mailing list