Replies: 1 comment 4 replies
-
You can exclude binaries supplied by SkiaSharp.NativeAssets.Linux by adding <ItemGroup>
<PackageReference Include="SkiaSharp.NativeAssets.Linux" Version="2.80.2" ExcludeAssets="all" />
</ItemGroup> |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
what i'm trying to do is preparing new development env from scratch on linux:
catch error like this:
System.DllNotFoundException: Unable to load shared library 'libSkiaSharp' or one of its dependencies.
I just started consider avalonia, but think probably everyone can do this the same way and stuck at the begining.
very simple SOLUTION is here:
project doesnt run this native library isnt working in such as prepared environment - BUT you can do:
cp ~/.nuget/packages/skiasharp.nativeassets.linux.nodependencies/2.80.3-preview.40/runtimes/linux-x64/native/libSkiaSharp.so <project-dir>/bin/Debug/net5.0
and this projekt will run without problems.
BUT if you create next new project mvvm - you will have the same bug of course, because during building this native lib is copied automatically into /bin/Debug/net5.0/runtimes/linux-x64/native
temporary but working solution is to:
cp ~/.nuget/packages/skiasharp.nativeassets.linux.nodependencies/2.80.3-preview.40/runtimes/linux-x64/native/libSkiaSharp.so ~/.nuget/packages/skiasharp.nativeassets.linux/2.80.2/runtimes/linux-x64/native
every new created project mvvm will then run without those problems..
of course very ugly solution, i doesnt want to have something like that in my environment
does everybody know how to repair build system proper way ?
thx
Beta Was this translation helpful? Give feedback.
All reactions