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
419 stars 51 forks source link

Problem loading plugin after updating the project to use VST.NET v2.1.1 #70

Open Paegasus opened 4 months ago

Paegasus commented 4 months ago

My plugin was working fine using VST.NET 2.1.0 and targeting .NET 6.0. After updating the VST.NET nuget package to 2.1.1 the plugin stops loading in any Host.

I managed to make it work again by targeting .Net 8.0 and changing the version in the *.runtimeconfig.json file in the "deploy" folder accordingly.

Not sure where the problem is but v2.1.1 seems to be working with .Net 8.0 only.

obiwanjacobi commented 3 months ago

Yeah, I screwed up. I have unlisted the v2.1.1. Please go back to 2.1.0 / .net6.

I am interested in the changes you made to *.runtimeconfig.json, though...

Paegasus commented 3 months ago

Yeah, I screwed up. I have unlisted the v2.1.1. Please go back to 2.1.0 / .net6.

I am interested in the changes you made to *.runtimeconfig.json, though...

I changed the target framework from "net6.0" to "net8.0" and the version from "6.0.0" to "8.0.0". After those changes the plugin loads fine, when compiled using .Net 8.0, of course.

Good luck, and thanks for the great work you've done with this library, hope you can fix it.

{
    "runtimeOptions": {
        "tfm": "net8.0",
        "framework": {
            "name": "Microsoft.WindowsDesktop.App",
            "version": "8.0.0"
        }
    }
}