Thanks all.  I solved it by passing the bootstrap assembly into mono_jit_init 
().  Did not realize this call could take a path to an assembly.

On Nov 4, 2011, at 3:13 PM, Robert Jordan wrote:

> 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
> 
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list

_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list

Reply via email to