I got the following code to create a DLL :
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
namespace Plugin
{
public class QtObject : DependencyObject
{
[...]
}
public class Timer : DependencyObject
{
[...]
}
}
I took the DLL and wanted to introspect it with this code :
var library = Assembly.LoadFrom(libraryPath);
IEnumerable<Type> types = library.GetTypes();
And on the second line, I got the following error :
“Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.”
And as far as I know, I should get 2 “objects” in my Collection, corresponding to my classes no ?
Thanks in adavance for any help.
Probably some of the references of your dll are not referenced by the application which reads the dll.