[Mono-dev] embedded mono and .NET 4.0 assemblies [peculiar error]
Jonathan Shore
jonathan.shore at gmail.com
Fri Nov 4 15:05:15 EDT 2011
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.
AssemblyRef Table
1: Version=4.0.0.0
Name=System
Flags=0x00000000
Public Key:
0x00000000: B7 7A 5C 56 19 34 E0 89
2: Version=4.0.0.0
Name=mscorlib
Flags=0x00000000
Public Key:
0x00000000: B7 7A 5C 56 19 34 E0 89
3: Version=4.0.0.0
Name=System.Core
Flags=0x00000000
Public Key:
0x00000000: B7 7A 5C 56 19 34 E0 89
The initialization part of the C++ code looks like:
// create AppDomain
_domain = mono_jit_init ("api");
// load bootstrap assembly
string dir (assemblydir);
string path = dir + "/com.gf.core.dll";
_core = mono_domain_assembly_open (_domain, path.c_str());
Where "com.gf.core.dll" is compiled to .NET 4.0. Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20111104/939b4f96/attachment-0001.html
More information about the Mono-devel-list
mailing list