SaaSHub helps you find the best software and product alternatives Learn more →
Top 23 C# csharp-sourcegenerator Projects
-
-
ReSharper
ReSharper is now available in VS Code and Cursor. ReSharper brings a professional toolset for C# developers backed by over 20 years of experience, enterprise-grade security, SOC 2 compliance, and the trust of companies worldwide.
-
About a year and a half ago, I was architecting a modular monolith and obsessing over performance. I'd been using MediatR for years, but I wanted something faster. I discovered Mediator by Martin Othamar - a SourceGenerator-based implementation that promised better performance through compile-time code generation.
-
Vogen
A semi-opinionated library which is a source generator and a code analyser. It Source generates Value Objects
-
I think people who last looked at C# 10 years ago or haven't adapted to new language features seriously don't know how good C# is these days.
Switch expressions with pattern matching are absolutely killer[0] for its terseness.
Also, it is possible to use OneOf[1] and Dunet[2] to get access to DU
[0] https://timdeschryver.dev/blog/pattern-matching-examples-in-...
[1] https://github.com/mcintyre321/OneOf
[2] https://github.com/domn1995/dunet
-
-
-
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
-
SmallSharp
Create, edit and run multiple C# top-level programs in the same project by just selecting the startup program from the start button.
-
-
-
Enum.Source.Generator
A C# source generator to create an enumeration class from an enum type. With this package, you can work on enums very, very fast without using reflection.
-
-
PropertyChanged.SourceGenerator
Powerful INotifyPropertyChanged / INotifyPropertyChanging Source Generator, which generates INPC boilerplate for you as part of your build. Supports features such as automatic and manual dependencies between properties, notifications when specific properties change, and more.
-
DependencyPropertyGenerator
Dependency property, routed event and weak event source generator for WPF/UWP/WinUI/Uno/Avalonia/MAUI platforms.
-
GodotOnReady
A C# Source Generator that adds convenient onready-like features to your C# scripts in Godot Mono (3.x) without any reflection.
-
-
-
JsonByExampleGenerator
Generate classes based on example json files in your project. Uses a C# 9 source generator.
-
-
-
SmartAnnotations
A library for .NET that uses source generators to automatically generate data annotations for your models.
-
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
C# csharp-sourcegenerator discussion
C# csharp-sourcegenerator related posts
-
I created a new object mapper
-
Primitive obsession
-
Should I use AutoMapper for this?
-
Reflection -> Source Generated
-
Where to convert input to Value Object in Clean Architecture?
-
Is Automapper the most hated library?
-
When using the DTO pattern and rolling your own mappers, is there a shorter way to write the mapping functions?
-
A note from our sponsor - SaaSHub
www.saashub.com | 7 Jun 2026
Index
What are some of the best open-source csharp-sourcegenerator projects in C#? This list will help you:
| # | Project | Stars |
|---|---|---|
| 1 | mapperly | 4,091 |
| 2 | Mediator | 3,600 |
| 3 | Vogen | 1,453 |
| 4 | dunet | 877 |
| 5 | stronginject | 868 |
| 6 | FastCloner | 357 |
| 7 | ZeroQL | 320 |
| 8 | LinqGen | 313 |
| 9 | SmallSharp | 309 |
| 10 | WinFormsComInterop | 294 |
| 11 | GodotSharp.SourceGenerators | 291 |
| 12 | Enum.Source.Generator | 197 |
| 13 | Immediate.Handlers | 191 |
| 14 | PropertyChanged.SourceGenerator | 166 |
| 15 | DependencyPropertyGenerator | 153 |
| 16 | GodotOnReady | 122 |
| 17 | net_automatic_interface | 115 |
| 18 | SimpleSIMD | 93 |
| 19 | JsonByExampleGenerator | 87 |
| 20 | MapDataReader | 79 |
| 21 | SqlMarshal | 65 |
| 22 | SmartAnnotations | 58 |
| 23 | spiderly | 57 |