I'm trying to create plugin which uses some functions from external dll-s. Because I don't know which plugin will be used I would like to dynamically load:
-
main asp.net core project which dynamically loads plugins like mailservice.dll using reflection.
-
mailservice.dll library which exposes CheckMail() method (I use MimeKit as a IMAP helper).
Everything loads fine but when I invoke CheckMail() method I receive FileNotFoundException. I put all dependencies for MimeKit extracted from release version and still nothing (46 files). When I install MimeKit package using nuget to my main asp.net project everything runs fine but obviously I don't want keep such dependency.
Is there any tool or technique to inspect which file is missing?
Aucun commentaire:
Enregistrer un commentaire