Soenneker.Quark.Gen.SimpleIcons
4.0.99
Prefix Reserved
dotnet add package Soenneker.Quark.Gen.SimpleIcons --version 4.0.99
NuGet\Install-Package Soenneker.Quark.Gen.SimpleIcons -Version 4.0.99
<PackageReference Include="Soenneker.Quark.Gen.SimpleIcons" Version="4.0.99"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
<PackageVersion Include="Soenneker.Quark.Gen.SimpleIcons" Version="4.0.99" />
<PackageReference Include="Soenneker.Quark.Gen.SimpleIcons"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add Soenneker.Quark.Gen.SimpleIcons --version 4.0.99
#r "nuget: Soenneker.Quark.Gen.SimpleIcons, 4.0.99"
#:package Soenneker.Quark.Gen.SimpleIcons@4.0.99
#addin nuget:?package=Soenneker.Quark.Gen.SimpleIcons&version=4.0.99
#tool nuget:?package=Soenneker.Quark.Gen.SimpleIcons&version=4.0.99
Soenneker.Quark.Gen.SimpleIcons
Build-time generation of a trimmed Simple Icons SVG provider for Quark and Razor projects.
Install
dotnet add package Soenneker.Quark.Gen.SimpleIcons
dotnet add package Soenneker.SimpleIcons.Enums.Icons
dotnet add package Soenneker.SimpleIcons.Icons
The enum package supplies SimpleIconEnum values. The icons package supplies the SVG resources used during generation.
Usage
Use literal Razor icon names so the build can discover them:
@using Soenneker.Quark
@using static Soenneker.SimpleIcons.Enums.Icons.SimpleIconEnum
<SimpleIcon Name="Github" />
<SimpleIcon Name="React" aria-label="React" />
The static import brings enum members such as Github into scope for the component's enum parameter, and the generator reads the literal names directly. Keep this import in the page that uses it. No enum alias is needed.
Register the generated provider with dependency injection:
using Soenneker.Quark.Gen.SimpleIcons.Generated;
services.AddSimpleIconsAsScoped();
Reference the generator directly in the application project and build once to produce this namespace and registration extension. Quark's own private build dependencies do not configure the consuming application's provider. The Quark installation guide covers the rest of the component setup.
At build time, the package scans .cs and .razor files and embeds only the discovered SVGs in the consuming assembly. Its scanner recognizes literal <SimpleIcon Name="Name" /> values and C# references spelled SimpleIcon.Name.
The public enum is currently named SimpleIconEnum; do not assume arbitrary enum expressions or aliases are discovered by that textual scanner. Use literal Razor Name values for reliable discovery. If runtime logic selects an icon, ensure each permitted icon also appears as a literal Name in source. Names created only through reflection, concatenation, or configuration cannot add SVGs to the build.
Build options
Disable generation for a project:
<PropertyGroup>
<SimpleIconsGeneratorBuildEnabled>false</SimpleIconsGeneratorBuildEnabled>
</PropertyGroup>
Override the generated map path when needed:
<PropertyGroup>
<SimpleIconsSvgMapOutput>$(IntermediateOutputPath)Generated\SimpleIconSvgMap.g.cs</SimpleIconsSvgMapOutput>
</PropertyGroup>
The generated map and provider are implementation details. Consume them through ISimpleIconsSvgProvider or Quark’s SimpleIcon component.
SimpleIconsIncludeSvgProvider and SimpleIconsIncludeServiceCollectionExtensions default to true. Library authors can disable these outputs when the final application supplies the provider and registration. Leave them enabled for a normal app.
If an icon is missing, check its source-visible name, the SVG catalog reference, generated files under obj/.../Generated, and the DI registration. See the generator guide for how brand icons, Lucide, CSS, and themes fit together.
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- Soenneker.Quark.Gen.SimpleIcons.Abstractions (>= 4.0.29)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.99 | 304 | 10/15/2026 |
| 4.0.98 | 102 | 10/15/2026 |
| 4.0.96 | 107 | 10/14/2026 |
| 4.0.94 | 106 | 10/14/2026 |
| 4.0.93 | 96 | 10/14/2026 |
| 4.0.87 | 101 | 10/13/2026 |
| 4.0.86 | 90 | 10/13/2026 |
| 4.0.85 | 89 | 10/12/2026 |
| 4.0.84 | 127 | 10/12/2026 |
| 4.0.83 | 90 | 10/12/2026 |
| 4.0.82 | 88 | 10/12/2026 |
| 4.0.81 | 100 | 10/11/2026 |
| 4.0.80 | 91 | 10/11/2026 |
| 4.0.79 | 326 | 10/3/2026 |
| 4.0.78 | 110 | 10/2/2026 |
| 4.0.77 | 312 | 10/1/2026 |
| 4.0.76 | 120 | 10/1/2026 |
| 4.0.75 | 102 | 9/30/2026 |
| 4.0.74 | 95 | 9/30/2026 |
| 4.0.73 | 126 | 9/30/2026 |
Updated Multiple NuGet packages