Yes, you could load dependent assemblies from anywhere you like by handling the AppDomain.AssemblyResolve Event. If your application knows that the dependent assemblies may be in another directory, it can handle this event (which automatically means they can't be found in the application directory, since the .Net framework looks there first), and try to retrieve the directory load Alternate location for device assembly.
For more information, see Resolving Assembly Loads.
See also solutions here.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our [documentation][5] to enable e-mail notifications if you want to receive the related email notification for this thread.
[5]: https://learn.microsoft.com/en-us/answers/articles/67444/email-notifications.html