Is there a way to actually upgrade a Grasshopper plugin built upon a .NET Framework 4.8 Visual Studio template to use also .NET Core?
So far, I’ve read the following guides and threads:
All of them suggest a new project using the updated template, either as a starting point or as an added launcher for debugging in Rhino 8 (which I’ve done, but that’s not what I want). I’ve not yet seen a way of actually upgrading a .NET Framework 4.8 project to use also .NET Core. I’m talking about a project whose properties in Visual Studio still look like this:
If I click on “Install other frameworks…” I just get redirected to this site, but nothing changes even after installing the SDK libraries. Of course, .NETCore SDK libraries are already installed on my PC (both 7.0 and 8.0).
I’ve tried to use multiple <TargetFrameworks> in the .csproj file as CSykes suggests here: in my .csproj file there is a <TargetFrameworkVersion>v4.8</TargetFrameworkVersion> line, and if I try to replace it with <TargetFrameworks>net4.8;net8.0<TargetFrameworks> I get an error code 0x80004002 in the solution, and the solution itself is not loaded.
So, is there an actual way to upgrade an old 4.8 project to use also .NET Core? Or is starting from a new, updated template the only way? If so, how can I preserve the old plugin GUID so that it is effectively a new version and the new version does not install in parallel with the old one? Or maybe I just missed something along the way?
