Using VS2017 RC.
I am trying to load an assembly from a file. The dependencies of this assembly are in the same folder.
I am using AssemblyLoadContext.Default.LoadFromAssemblyPath
.
I realize LoadFromAssemblyPath exclusively loads the request assembly, ignoring its dependencies; any attempt to iterate through the assembly types fails with a System.Reflection.ReflectionTypeLoadException
.
LoaderExceptions
contains a list of System.IO.FileNotFoundException
.
I'm curious as to why this is the case, since all the required files are in the same folder.
I also tried to load all *.dll files in a folder, but some fail with a System.IO.FileLoadException
.
what am I doing wrong?
Aucun commentaire:
Enregistrer un commentaire