We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Error CS0012 The type 'Size' is defined in an assembly that is not referenced

Hi

we are trying to migrate our Xamarin native application to .Net6-android and .Net6-Ios.
Currently we are facing the issue that we can not use the ImageEditor because Version 20.2.0.40 is not comatible.

We get for example:

Error CS0012 The type 'Size' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Drawing.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.

when calling 

imageEditor.Save("png", null);


Can we expect a compatible version in the near future?
Do we have to Switch over to Maui Implementation? Or can we stay on Xamarin.Android / Xamarin.IOs?

Regards
Lars


4 Replies

ET Eswaran Thirugnanasambandam Syncfusion Team January 24, 2023 02:10 PM UTC

Query 1: Error CS0012 when calling the imageEditor.Save("png", null);

We checked the reported issue and discovered that the provided code is incorrect. We can’t provide the size as null so please set any size or don’t set any size in the save method to resolve the issue.


Query 2: Can we expect a compatible version in the near future?

Currently, we are analyzing your query. We will validate and update you the further details on or before Jan 27, 2023. We appreciate your patience until then.


Query 3: Do we have to Switch over to Maui Implementation?

Currently our development team is developing the SfImageEditor control in MAUI platform and it be available in Volume 2 2023 release, which is expected to be released on end July 2023. We appreciate your patience until then.



LH Lars Heinrich January 24, 2023 02:31 PM UTC

Hi Eswaran,

sorry to continue this ticket, but I have additional questions here.

The provided code was just for pointing out that all controls from

Syncfusion.Xamarin.xxx.Android and Syncfusion.Xamarin.xxx.IOS are not compatible with .net6-android and .net6.ios.

They are only compatible with xamarin.iOS and xamarin.android. So how does the story look like for net6.ios and net6.android with native ui? Can we stay with  Syncfusion.Xamarin.xxx.Android and  Syncfusion.Xamarin.xxx.IOS and there will be a .net6 compatible Version... or do we have to switch to Syncfusion.Maui.xxx even that we do not have xaml and handlers and all the maui related stuff?

Regards Lars




ET Eswaran Thirugnanasambandam Syncfusion Team January 25, 2023 07:17 AM UTC

Hi Lars,


As of now, there are no plans to support .NET 6.0 for Android and .NET 6.0 for iOS. As an alternative, we suggest migrating to the MAUI framework. As mentioned earlier the MAUI SfImageEditor control will be included in the Volume 2 Main Release, which is expected to be released on end July 2023.


Regards,

Eswaran



LH Lars Heinrich February 9, 2023 05:13 PM UTC

Sorry to stress this even more, 

migrating a xamarin native app to maui would be a complete rework. Maui is the upgrade path for Xamarin Forms projects. For Xamarin Native projects it´s switch csproj to new sdk-style and continue using axmls and xib. The Maui based controls are based on Microsoft.Maui.Controls. So they are a complete rewrite of the existing controls. I can imagine developer resources are under pressure to deliver the Maui Versions. But is it really so hard to change the csproj to sdk-style  of the existing controls and to support net6?

And if its too mutch work for you. Any Chance to get a SourceCode Licenze for this controls?



Loader.
Up arrow icon