obiwanjacobi / vst.net

Virtual Studio Technology (VST) for .NET. Plugins and Host applications.
https://obiwanjacobi.github.io/vst.net/index.html
GNU Lesser General Public License v2.1
420 stars 53 forks source link

Problem loading secondary dependencies from deploy/bin #53

Open obiwanjacobi opened 3 years ago

obiwanjacobi commented 3 years ago

When a plugin has dependent assemblies that are loaded after the initial boot/load sequence of the plugin, they are not found in the deploy/bin location. They are only found when moved to the deploy folder.

(NoteToSelf: Have a sample project to reproduce: VST.NET-DepLoadingProblem.7z)

aminya commented 1 year ago

I am having a similar problem with VST.NET1. You can reproduce it in this PR: https://github.com/robianmcd/midi-shape-shifter/pull/9

This is the type of error that I get image

I hope that I can fix this and upgrade to VST.NET2

aminya commented 1 year ago

I managed to fix the above using ILRepack: https://github.com/ravibpatel/ILRepack.Lib.MSBuild.Task

Here is the config file needed for that. The VST.NET files need to stay outside https://github.com/robianmcd/midi-shape-shifter/blob/master/MidiShapeShifter/MidiShapeShifter/ILRepack.targets