SkiaSharp.Extended icon indicating copy to clipboard operation
SkiaSharp.Extended copied to clipboard

ILLink: error IL1011:

Open JozefGulaPayius opened this issue 2 years ago • 3 comments

Hello,

I am using the last version of visual studio (17.5.0 Preview 1.0), Net7.0, MAUI (7.0.49) and SkiaSharp.Extended.UI.Maui (2.0.0-preview.59).

My application is working properly in debug mode. However, the build in release mode ends with this error:

Unhandled exception. Mono.Linker.LinkerFatalErrorException: ILLink: error IL1011: Failed to write 'obj\Release\net7.0-android\android-arm64\linked\SkiaSharp.Views.Android.dll'. ---> System.ArgumentException: Member 'System.Int32 SKCanvasView_ignorePixelScaling' is declared in another module and needs to be imported at Mono.Cecil.MetadataBuilder.LookupToken(IMetadataTokenProvider provider) at Mono.Cecil.Cil.CodeWriter.WriteOperand(Instruction instruction) at Mono.Cecil.Cil.CodeWriter.WriteInstructions() at Mono.Cecil.Cil.CodeWriter.WriteResolvedMethodBody(MethodDefinition method) at Mono.Cecil.Cil.CodeWriter.WriteMethodBody(MethodDefinition method) ....

Do you have some idea how can I fix this problem?

Thank you very much.

JozefGulaPayius avatar Nov 14 '22 15:11 JozefGulaPayius

I am also experiencing this issue

AswinPG avatar Nov 15 '22 10:11 AswinPG

I got the same issue here. Any workaround?

idenardi avatar Nov 29 '22 20:11 idenardi

This should be fixed now in the latest versions of SkiaSharp. Can you try the latest previews of Extended?

mattleibow avatar Sep 01 '23 18:09 mattleibow

Should be fixed.

mattleibow avatar Apr 05 '24 22:04 mattleibow