[Mono-dev] embedded mono and .NET 4.0 assemblies [peculiar error]

Robert Jordan robertj at gmx.net
Fri Nov 4 15:13:13 EDT 2011


On 04.11.2011 20:05, Jonathan Shore wrote:
> My assembly is definitely 4.0 and "monodis --assemblyref" indicates dependency on .NET 4 assemblies.   I'll look into mono_jit_init_version() and see whether this helps.

Yes, but you're not using it for initialization.

>
> 	// create AppDomain

This won't initialize a v4 runtime. The default is 2.0:

> 	_domain = mono_jit_init ("api");
> 	
> 	// load bootstrap assembly
> 	string dir (assemblydir);
> 	string path = dir + "/com.gf.core.dll";

That's too late:

> 	_core = mono_domain_assembly_open (_domain, path.c_str());
>
> Where "com.gf.core.dll" is compiled to .NET 4.0.  Thanks

Robert



More information about the Mono-devel-list mailing list