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

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

  6. stronginject

    compile time dependency injection for .NET

  7. FastCloner

    The fastest deep cloning library for .NET – zero-config, works out of the box.

  8. ZeroQL

    C# GraphQL client with Linq-like syntax

  9. SaaSHub

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

    SaaSHub logo
  10. LinqGen

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

  11. SmallSharp

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

  12. WinFormsComInterop

    ComWrappers required to run NativeAOT and WinForms

  13. GodotSharp.SourceGenerators

    C# source generators for the Godot Game Engine

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

  15. Immediate.Handlers

    Source Generated implementation of the Mediator pattern

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

  17. DependencyPropertyGenerator

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

  18. GodotOnReady

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

  19. net_automatic_interface

    .Net Source Generator for Automatic Interfaces

  20. SimpleSIMD

    Easy to use SIMD accelerated Array and Span methods

  21. JsonByExampleGenerator

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

  22. MapDataReader

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

  23. SqlMarshal

    Generates data access using stored procedures

  24. SmartAnnotations

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

  25. spiderly

    .NET (C#) Web App Framework Built For AI Coding Agents

  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

Log in or Post with

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 - SaaSHub
    www.saashub.com | 7 Jun 2026
    SaaSHub helps you find the best software and product alternatives 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 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

Sponsored
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.
www.jetbrains.com

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