mercredi 21 juin 2017

Loading an unknown assembly via reflection in a PCL library

I am trying to load an object from an assembly via reflection.

My code that must do this is contained in a C# PCL library.

My progress so far:

I have successfully located the file path of the assembly. I think I know how to load the type I need from it, if I can get a valid assembly object of the dll.

Restrictions:

The only options I have on the Assembly class for loading is .load() I cannot move the dll to be in the same directory as the executable which is reflecting, even though that might work. I do not know the strong name of the assembly, as it is an unknown assembly in a folder.

A Side Note:

I am willing to use any library that does this.

The Question:

How do I load the assembly so I can reflect over it in a PCL library?





Aucun commentaire:

Enregistrer un commentaire