Skip to main content
Branded.SourceGenerator package icon

Branded.SourceGenerator

Branded.SourceGenerator is a C# source generator that facilitates the creation of branded types, enhancing type safety by wrapping primitive types with more specific, custom types. This helps prevent bugs associated with the accidental misuse of identifiers, as it allows the compiler to enforce stronger type checks.

Total Downloads
2.6K
2,621
Published
Jan 16, 2026
Latest stable version

Install

.NET CLI
dotnet add package Branded.SourceGenerator --version 1.0.7
Package Manager Console
Install-Package Branded.SourceGenerator -Version 1.0.7
PackageReference
<PackageReference Include="Branded.SourceGenerator" Version="1.0.7" />

Frameworks

.NETStandard2.0

Dependencies

[4.3.1, )

Adoption guide

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

Compatibility metadata lists 1 target framework; confirm the exact target used by your application.

How to read this guidance

Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.

Useful next steps

Move from package metadata to a concrete selection or review workflow.