C# csharp-sourcegenerator

Open-source C# projects categorized as csharp-sourcegenerator

Top 23 C# csharp-sourcegenerator Projects

csharp-sourcegenerator
  1. mapperly

    A .NET source generator for generating object mappings. No runtime reflection.

  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. Mediator

    A high performance implementation of Mediator pattern in .NET using source generators.

    Project mention: Why I Built Yet Another Mediator (And Why You Might Care) | dev.to | 2025-12-16

    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.

  4. Vogen

    A semi-opinionated library which is a source generator and a code analyser. It Source generates Value Objects

  5. stronginject

    compile time dependency injection for .NET

  6. dunet

    C# discriminated union source generator

    Project mention: What .NET 10 GC Changes Mean for Developers | news.ycombinator.com | 2025-10-05

    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

  7. LinqGen

    Alloc-free and fast replacement for Linq, with code generation

  8. ZeroQL

    C# GraphQL client with Linq-like syntax

  9. Stream

    Stream - Scalable APIs for Chat, Feeds, Moderation, & Video. Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.

    Stream logo
  10. SmallSharp

    Create, edit and run multiple C# top-level programs in the same project by just selecting the startup program from the start button.

  11. WinFormsComInterop

    ComWrappers required to run NativeAOT and WinForms

    Project mention: Show HN: NeatShift – Organize Windows Files with Symbolic Links | news.ycombinator.com | 2024-12-27

    It's a WinForms application. However, it is indeed somewhat user-unfriendly to distribute (untrimmable) WinForms applications in a self-contained form.

    It's usually much better to build them as runtime-dependent but single-file binaries.

    E.g. 'dotnet publish -p:PublishSingleFile=true --no-self-contained' produces a 5.9 MB binary (but obviously needs a .NET desktop runtime installed, it helpfully offers to do so on launch if it's missing).

    I assume modifying the solution to use https://github.com/kant2002/WinFormsComInterop + NativeAOT would result in ~30-40MB binary as it packages a GUI framework effectively. It could also help with just self-contained and getting trimming to work.

    There is a bit of learning curve to all sorts of ways you can build an application with .NET but that's what you pay for having flexible choices over more limited options with Java or Go.

  12. GodotSharp.SourceGenerators

    C# source generators for the Godot Game Engine

  13. 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.

  14. Immediate.Handlers

    Source Generated implementation of the Mediator pattern

  15. 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.

  16. DependencyPropertyGenerator

    Dependency property, routed event and weak event source generator for WPF/UWP/WinUI/Uno/Avalonia/MAUI platforms.

  17. GodotOnReady

    A C# Source Generator that adds convenient onready-like features to your C# scripts in Godot Mono (3.x) without any reflection.

  18. net_automatic_interface

    .Net Source Generator for Automatic Interfaces

  19. SimpleSIMD

    Easy to use SIMD accelerated Array and Span methods

  20. JsonByExampleGenerator

    Generate classes based on example json files in your project. Uses a C# 9 source generator.

  21. MapDataReader

    Super fast mapping DataReader to strongly typed object, Using AOT source generator.

  22. SqlMarshal

    Generates data access using stored procedures

  23. SmartAnnotations

    A library for .NET that uses source generators to automatically generate data annotations for your models.

  24. WrapperValueObject

    A .NET source generator for creating simple value objects wrapping primitive types.

  25. BuilderGenerator

    A source-generator-based implementation of the Builder pattern

  26. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

C# csharp-sourcegenerator discussion

C# csharp-sourcegenerator related posts

  • I created a new object mapper

    2 projects | /r/dotnet | 7 Dec 2023
  • Primitive obsession

    1 project | /r/dotnet | 10 Jun 2023
  • Should I use AutoMapper for this?

    1 project | /r/dotnet | 7 Jun 2023
  • Reflection -> Source Generated

    6 projects | /r/dotnet | 3 Jun 2023
  • Where to convert input to Value Object in Clean Architecture?

    1 project | /r/dotnet | 27 May 2023
  • Is Automapper the most hated library?

    2 projects | /r/dotnet | 12 May 2023
  • When using the DTO pattern and rolling your own mappers, is there a shorter way to write the mapping functions?

    4 projects | /r/csharp | 7 May 2023
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 23 Dec 2025
    InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now. Learn more →

Index

What are some of the best open-source csharp-sourcegenerator projects in C#? This list will help you:

# Project Stars
1 mapperly 3,820
2 Mediator 3,192
3 Vogen 1,331
4 stronginject 866
5 dunet 822
6 LinqGen 313
7 ZeroQL 313
8 SmallSharp 309
9 WinFormsComInterop 276
10 GodotSharp.SourceGenerators 236
11 Enum.Source.Generator 194
12 Immediate.Handlers 170
13 PropertyChanged.SourceGenerator 159
14 DependencyPropertyGenerator 143
15 GodotOnReady 123
16 net_automatic_interface 109
17 SimpleSIMD 92
18 JsonByExampleGenerator 85
19 MapDataReader 73
20 SqlMarshal 65
21 SmartAnnotations 58
22 WrapperValueObject 52
23 BuilderGenerator 48

Sponsored
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com

Did you know that C# is
the 11th most popular programming language
based on number of references?