Install SkiaSharp
I'm completely new to C#. I'm trying to install a package but can't figure out how. What is going wrong?
16 Replies
I'm on Linux if that has to do with anything
you'll want to use
dotnet add package <ID>
, there's rarely need for the nuget
cli these days.I was just following what the repo said
https://github.com/mono/SkiaSharp/tree/main?tab=readme-ov-file#using-skiasharp
not sure why they'd tell you to do that, must've been written a while ago
the readme was last updated 5 months ago ¯\_(ツ)_/¯
though, i also noticed
feeds used
is blank, that's odd
try dotnet add
, does it work?well it seemed to install SkiaSharp, but now when I run my app it can't locate the library
this is my code
you're missing a native dep, it would seem
from the readme, it seems you need another nuget to get the native lib
I installed the native dep too, but I can't get it working. I'm giving up on C# and going back to Rust
What error did you get after installing the native dep?
Maybe the issue is SkiaSharp and not dotnet. I'm gonna try using CairoSharp instead
Actually CairoSharp hasn't been updated in 4 years so it's probaby not worth trying to use
wait no, it's GTKsharp?
@VExcess why don't you use ImageSharp? It's pure C# so it just works anywhere C# works. It's my go to for image manipulation.
GitHub
GitHub - SixLabors/ImageSharp: :camera: A modern, cross-platform, 2...
:camera: A modern, cross-platform, 2D Graphics library for .NET - SixLabors/ImageSharp
Do be aware that the license isn't necessarily compatible with a commercial product
only being able to use the library if your company makes less than $1M per year is unique
Not an issue for me though. All the code I've ever written is open source and free to use
Then you're about to have a good time.