Several packages in this repository declare trimming and AOT-related metadata.
Svg.Skia and Svg.Custom set:
IsTrimmable=true for frameworks compatible with net6.0,IsAotCompatible=true for frameworks compatible with net8.0.That does not remove the need for your own application-level validation, but it does mean the libraries are already annotated with these deployment modes in mind.
The generated-code route is often the simplest way to avoid runtime parsing in highly constrained environments:
Svg.SourceGenerator.Skia compiles assets at build time.svgc can generate checked-in code ahead of publishing.The repository includes samples/Svg.Skia.Converter/NativeAOT.md with publish commands for:
win-x64linux-x64osx-x64Those commands are a good starting point when the converter should be distributed as a self-contained tool.