Answer the question
In order to leave comments, you need to log in
How to download NuGet packages for a dll not located next to an exe?
My application uses a plugin loading system, plugins are stored in the "Plugin" folder in the current user's documents folder. Plugins are stored in documents so that plugins can be loaded or updated while the application is running.
I'm having a problem when using NuGet packages inside plugins.
The plugin is loaded via the "Assembly.LoadFrom" function and an error occurs during loading:
System.Windows.Markup.XamlParseException: "Failed to load file or assembly "Xceed.Wpf.Toolkit, PublicKeyToken=3e4669d2f30244f4" or one of their dependencies. Cannot find specified file."
If exe and dll are placed in the same directories, then no error occurs.
I suspect that the program is looking for "Xceed.Wpf.Toolkit" not next to the plugin being loaded, but next to the exe.
How do I add a plugin directory to search for NuGet packages in it?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question