SvgToAssets 0.1.0
dotnet tool install --global SvgToAssets --version 0.1.0
dotnet new tool-manifest
dotnet tool install --local SvgToAssets --version 0.1.0
#tool dotnet:?package=SvgToAssets&version=0.1.0
nuke :add-package SvgToAssets --version 0.1.0
SvgToAssets
A .NET tool that turns SVGs into the visual assets and AppIcon.ico a WinUI 3 app needs.
Runs on x64 Windows, Linux and macOS with the .NET 10 runtime. Linux also needs libfontconfig1.
Install
dotnet tool install --global SvgToAssets
Or build the tool package and install it from the local folder:
dotnet pack -c Release -o artifacts
dotnet tool install --global SvgToAssets --add-source ./artifacts
Usage
svgtoassets <svg>... [options]
| Option | Description | Default |
|---|---|---|
-o, --output |
Directory to write the assets to; created if missing. | ./Assets |
-t, --type |
Assets (the PNGs), Icon (AppIcon.ico), or All. |
All |
-c, --category |
Basic: the WinUI template's 7 files. Required: every scale of the assets the default manifest references. Optional: the unreferenced tiles. All: Required + Optional and a 14-size AppIcon.ico. |
Required |
Inputs can be files or glob patterns. When several SVGs are converted, each gets an output subfolder named after it
(e.g. dark/App Logo.svg becomes dark-app-logo).
svgtoassets logo.svg -o MyApp/Assets
svgtoassets "icons/**/*.svg" -o out -c All
External images and elements referenced by an SVG are only loaded from the local file system.
Credits
The idea and the original tool come from SvgToAssets by Noël Danjou.
Third-party components and their licenses are listed in THIRD_PARTY_NOTICES.md.
License
Licensed under the GNU General Public License v3.0 or any later version, with an additional permission to combine it with the Ms-PL licensed SVG.NET and Svg.Custom libraries. See LICENSE-NOTICE.md.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0 | 35 | 9/13/2026 |