Unable to run Aspose.SVG from Aspose.Total on M1 Mac .Net 8.0 adding Aspose.SVG and Aspose.SVG.Drawing.SkiaSharp references.
Two issuse new SkiaModulw() not found, and appears to be using System.Drawing.Common.dll missing
Dotnet build error:
/Users/bhutfless/github/ps/MyAsposeSvgApp/Program.cs(2,26): error CS0234: The type or namespace name ‘SkiaSharp’ does not exist in the namespace
How do I get around these issues?
Please help?
@bhutfless
We request you to uninstall Aspose.SVG for .NET package and install Aspose.SVG.Drawing.SkiaSharp in your project. It is designed to work under non-Windows environments. In case you still face any issues, please let us know.
Actually, if we downgrade the following it works, however if we try the latest versions it is broken …
<PackageReference Include="Aspose.SVG" Version="25.4.0" />
<PackageReference Include="Aspose.SVG.Drawing.SkiaSharp" Version="25.4.0" />
<PackageReference Include="SkiaSharp.NativeAssets.Linux" Version="3.116.0" />
Versiom 25.5.0 and 3.119.1 fail, with error above.
@bhutfless
Would you please only try using below package(s) and remove Aspose.SVG?
<PackageReference Include="Aspose.SVG.Drawing.SkiaSharp" Version="25.5.0" />
OR
<PackageReference Include="Aspose.SVG.Drawing.SkiaSharp" Version="25.5.0" />
<PackageReference Include="SkiaSharp.NativeAssets.Linux" Version="3.116.0" />
In case issue still persists, please share a sample console application in .zip format with us so that we can further proceed to investigate accordingly.
Here is the project, still get errors on Mac, without docker!
test-aspose-svg 2.zip (94.9 KB)
@bhutfless
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): SVGNET-504
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
@bhutfless
Please try to use the Skia-linked build alone and pull the macOS native Skia assets:
<ItemGroup>
<!-- contains Aspose.SVG + Skia bindings – do *not* add Aspose.SVG -->
<PackageReference Include="Aspose.SVG.Drawing.SkiaSharp" Version="25.5.0" />
<!-- macOS/Apple-silicon dylibs – NOT the Linux ones -->
<PackageReference Include="SkiaSharp.NativeAssets.macOS" Version="3.116.1" />
</ItemGroup>
Remove the plain Aspose.SVG reference and any SkiaSharp.NativeAssets.Linux line.
The .macOS assets ship the right .dylib files; the Linux pack only has .so, which is why SkiaModule couldn’t load and the compiler couldn’t see SkiaSharp.
Proof-of-life repo - We pushed a minimal repro to GitHub that builds and runs on the free GitHub Actions macOS-14 Apple-silicon runner:
Repo: GitHub - victordeviatov/SvgMacTest: Test Aspose.SVG on MAC OS
Passing run (net8.0, M1): Create macos-build.yml · victordeviatov/SvgMacTest@e91ea4b · GitHub
If you need a full sample to copy, just clone the repo above and drop your own code in.
We really hope this helps.