Giter Site home page Giter Site logo

Comments (6)

softlion avatar softlion commented on May 29, 2024

it looks like it's back in the version 3.0.0-preview3.1

Did I dream that it was there before ? I don't think so.
My add did work on iOS before I upgraded.

It used to be there with the UseSkiSharp(true) overload.

btw 3.0.0-preview3.1 is crashing with that message:

The version of the native libSkiaSharp library (88.1) is incompatible with this version of SkiaSharp. Supported versions of the native libSkiaSharp library are in the range [115.0, 116.0).

at SkiaSharp.SkiaSharpVersion.CheckNativeLibraryCompatible(Version minSupported, Version current, Boolean throwIfIncompatible)
   at SkiaSharp.SkiaSharpVersion.CheckNativeLibraryCompatible(Boolean throwIfIncompatible)
   at SkiaSharp.SKObject..cctor()

InnerException was TypeInitializationException: The type initializer for 'SkiaSharp.SKObject' threw an exception.
	   at SkiaSharp.SKData..ctor(IntPtr x, Boolean owns)
   at SkiaSharp.SKData.SKDataStatic..ctor(IntPtr x)
   at SkiaSharp.SKData..cctor()

from skiasharp.

janne-hmp avatar janne-hmp commented on May 29, 2024

.NET runtime in .NET 9.0 Preview 3 is broken since they removed some globalization code. For the time being, adding <InvariantGlobalization>true</InvariantGlobalization> to your project file should help.

from skiasharp.

softlion avatar softlion commented on May 29, 2024

.NET runtime in .NET 9.0 Preview 3 is broken since they removed some globalization code. For the time being, adding <InvariantGlobalization>true</InvariantGlobalization> to your project file should help.

I'm using the .NET 8 stable release, not .NET 9 previews. Does that still apply ?

from skiasharp.

janne-hmp avatar janne-hmp commented on May 29, 2024

Then it may be something different. On that note, not sure if SkiaSharp 3.0 Preview 3.1 is fully compatible with .NET 8. It seems like it is being developed for .NET 9.

from skiasharp.

softlion avatar softlion commented on May 29, 2024

Then it may be something different. On that note, not sure if SkiaSharp 3.0 Preview 3.1 is fully compatible with .NET 8. It seems like it is being developed for .NET 9.

Well when you develop something specifically for .net9, your tfm won't be .net7. Not sure you are right on that one.

from skiasharp.

mattleibow avatar mattleibow commented on May 29, 2024

I think the issue about the missing API is that you need to use the compatibility nuget for 2.x: https://github.com/mono/SkiaSharp/blob/release/2.x/source/SkiaSharp.Views.Maui/SkiaSharp.Views.Maui.Controls.Compatibility/AppHostBuilderExtensions.cs#L22

For 3.x, this API is no longer needed since the GL view is now part of the handlers: https://github.com/mono/SkiaSharp/blob/main/source/SkiaSharp.Views.Maui/SkiaSharp.Views.Maui.Controls/AppHostBuilderExtensions.cs#L16

from skiasharp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.