OneSignal / OneSignal-Xamarin-SDK

OneSignal is a free push notification service for mobile apps. This plugin makes it easy to integrate your Xamarin app with OneSignal. https://onesignal.com
Other
104 stars 50 forks source link

Upcoming capability changes needed to support .NET 6 #270

Closed jkasten2 closed 1 year ago

jkasten2 commented 2 years ago

Summary

.NET 6 is making breaking changes which require changes to support:

In order to fully support the new native types in C# (nint, nuint), we’ve unfortunately realized that we can’t keep compatibility with existing code or assemblies built for Xamarin.iOS or Xamarin.Mac. https://github.com/xamarin/xamarin-macios/issues/13087

Calling this out as a heads up for a early warning, things are still in the early stages for Xamarin with Android and iOS.

Details

The consequences are as follows when upgrading a project to .NET 6:

  1. All code must be recompiled to support .NET 6. Existing assemblies (such as NuGets built for the old TargetFrameworkIdentifier xamarinios10) won’t work and won’t be supported. Non-xamarin specific assets for net4.x, netstandard, netcoreapp, net5.0+, etc. will work fine however.
  2. Existing code might need to be modified. We’ll post a more detailed document with examples of code changes that might be required at a later point.

https://github.com/xamarin/xamarin-macios/issues/13087

Next Steps

There is a preview for iOS support with .NET 6 out but things are still in early stages.

There isn't a migration guide yet (https://github.com/xamarin/xamarin-macios/issues/13087#issuecomment-1018678286) so it would be time efficient to wait until we have more details.

jkasten2 commented 1 year ago

Closing this in favor of https://github.com/OneSignal/OneSignal-Xamarin-SDK/issues/281 since it has more activity.