If I run this code:
var myAsm = typeof(MyType).Assembly; var types = myAsm.GetExportedTypes();
I get:
System.IO.FileNotFoundException : Could not load file or assembly ....
which lists the dependent assembly. However, if I do this:
var myAsm = Assembly.LoadFrom(...);
It works great.
I would prefer the first technique, since it is cleaner ... why should I load a DLL that is already loaded? Any tips?
source share