Rhino3dmIO.Desktop with Xamarin.mac

(Bernd Barsuhn) #1

The NuGet package can not be installed with the new “Xamarin.Mac Modern” target framework. Only the “Xamarin.Mac Full” target seems to be supported. But when targeting Xamarin.Mac Full, the application can not be linked with .NET 2.0 Standard assemblies.

I would like to use both. Will there be a release of Rhino3dmIO.Desktop supporting the “Xamarin.Mac Modern” target framework? Rhino3dmIO.iOS does not seem to have this restriction.

(Steve Baer) #3

I’ll have to research what the difference is between the two frameworks. Why do you need .NET 2.0 assemblies?

(Bernd Barsuhn) #4

I want to use the .NET Standard (not .NET Framework 2.0) because it is the most portable way to share code between different platforms.

(Steve Baer) #5

I created a request for this at https://mcneel.myjetbrains.com/youtrack/issue/RH-44358

I probably won’t be able to get to this in the near future as it will require quite a bit of retooling

(Bernd Barsuhn) #6

Just to make it clear, I don’t want Rhino3dmIO to be run in a .NET Core App. I currently only want to target Xamarin.Mac. I just want to reference assemblies that are built targeting .NET Standard.

As far as I know, I can not use references to those assemblies, when using the “Xamarin.Mac Full” target framework. But when I use the “Xamarin.Mac Modern” target framework, I am able to reference assemblies that are built targeting .NET Standard 2.0. You can find some documentation on Xamarin.Mac target frameworks at https://developer.xamarin.com/guides/mac/advanced_topics/target-framework/ and https://kb.xamarin.com/guides/mac/deployment,_testing,_and_metrics/performance/ recommends to use the modern target framework.

So my request would be for Rhino3dmIO to support the “Xamarin.Mac Modern” framework since I only want to reference Rhino3dmIO from the Mac app. The .NET Standard assemblies are referenced by the Mac app but do not need a reference to Rhino3dmIO.