[Mono-dev] Invoking .net interface method from c api

zebrajap zebrajap at yahoo.com
Fri Aug 21 09:43:30 UTC 2015


Oh. I got your point.

The build output have System.dll in multiple places.

./lib/mono/2.0/System.dll
./lib/mono/4.5/System.dll
*./lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll*
./lib/mono/4.0/System.dll

I was loading it from ./lib/mono/4.0/System.dll. I am loading it as follows.

	mono_set_dirs("<Build Path>/lib", "<Build Path>/etc");
	pDomain = mono_jit_init_version("BuildDomain", "v4.0.30319" ); // Init the
JIT Engine 
	mono_config_parse(NULL);
	
	MonoAssembly* pSystemAssembly = mono_domain_assembly_open (pDomain, "<Build
Path>/lib/mono/4.0/System.dll");
	pSystemImage = mono_assembly_get_image (pSystemAssembly);

The file in gac seems to have the implementation.
How to make it load from gac without providing absolute path? Please note
that I cannot install it here.

Thanks for all the help so far.



--
View this message in context: http://mono.1490590.n4.nabble.com/Invoking-net-interface-method-from-c-api-tp4666493p4666514.html
Sent from the Mono - Dev mailing list archive at Nabble.com.


More information about the Mono-devel-list mailing list