I am a bit confused about .NET Core and .NET Framework.
Initially, I thought I should build Rhino 8 plugins specifically for .NET Core because it is “the new better correct way”. However, the majority of users have emailed me, stating that .NET Core is not the default option for Rhino. They have to manually choose .NET Core instead of .NET Framework.
Is there a way to cross-compile for both .NET Core and .NET Framework? Or should I use .NET Framework instead, since it is the default option?
1 Like
To my understanding, yes - you can multitarget both. In the Rhino/GH template in Visual Studio for example, you have multitargeting enabled. In the compiling process, two separate folders are created: one for Framework and one for Core. It works, since very recently Lunchbox and Karamba adopted this method and it is great!
Due to the limitations of the standard software packages in the AEC industry, for example Revit and Tekla, we need to use Framework as the default option in Rhino. Only time will alleviate the pain.
But then you have two build files. Can you upload both of them to Yak?
Yes, you can. It is called Multi-Targeting
If you follow this guide you should have a working GH plugin for both dotnet core and net framework. There is also an optional toggle to output yak packages automatically