[mono-android] Creating a type from another assembly by name
Brannon King
notacommie at gmail.com
Mon Feb 13 01:41:07 UTC 2012
> Is there any trick or extra bit I should be doing in order to instantiate
> a class from another assembly?
>
Did you try loading the assembly directly with a call to
Assembly.LoadFrom("Game.Data.dll") ? And I assume Game.Data.dll is the GAC
or the same path as your executable? Assuming the assembly does load, you
might try printing out the list of types from assembly.GetTypes() to see if
the type you're trying to load really does exist there. Another thing to do
is add event handlers to AppDomain.Current.TypeResolve/AssemblyResolve and
see what goes through them on your call. Do you possibly have multiple
versions of that DLL floating around? Sometimes there will be an old file
hanging around that gets loaded. Assembly.Location might help you in that
situation.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monodroid/attachments/20120212/143ce934/attachment.html>
More information about the Monodroid
mailing list