C# source-generator

Open-source C# projects categorized as source-generator

Top 13 C# source-generator Projects

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

  • Project mention: Reflection -> Source Generated | /r/dotnet | 2023-06-03
  • 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.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • Maui.Plugins.PageResolver

    A simple and lightweight page resolver for use in .NET MAUI projects

  • NTypewriter

    File/code generator using Scriban text templates populated with C# code metadata from Roslyn API.

  • Project mention: This week I released v2.1 of my text-templating library Weave that now uses Source Generators by default. | /r/dotnet | 2023-12-07

    I am currently using NTypewriter for code generation.

  • M31.FluentAPI

    Generate fluent APIs for your C# classes with ease.

  • DotMake Command-Line

    Declarative syntax for System.CommandLine via attributes for easy, fast, strongly-typed (no reflection) usage. Includes a source generator which automagically converts your classes to CLI commands and properties to CLI options or CLI arguments. (by dotmake-build)

  • Project mention: DotMake Command-Line VS command-line-api - a user suggested alternative | libhunt.com/r/dotmake-build/command-line | 2023-12-13
  • HttpClientCodeGenerator

    HttpClientGenerator is a tool that uses the Roslyn code generator feature to write boilerplate HttpClient code for you.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • safe-routing

    A C# source generator for ASP.NET Core razor pages and MVC controllers which produces strongly-typed identifiers for routes.

  • Project mention: Advantages and disadvantages of FastEndpoints | /r/dotnet | 2023-06-24

    There are other approaches to safe routing, like those that use C# Source Generators

  • generator-start

    template repository for a roslyn source generator

  • Tortuga.Shipwright

    A trait engine for C#.

  • PrimaryParameter

    Using a Field or Property attribute on parameters. Automaticaly generate private readonly fields or private properties. Forbid the use of primary constructor's parameters.

  • Xtz.StronglyTyped

    Set of NuGet packages to strongly-type your interfaces (properties, methods, APIs, DB entities, appsettings). Eliminate stringly-typed interfaces. Make compiler your friend, introduce semantics to your code.

  • MsSql.Adapter

    Dotnet incremental source generator of service contracts for MSSQL stored procedures

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# source-generator related posts

Index

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

Project Stars
1 Enum.Source.Generator 161
2 PropertyChanged.SourceGenerator 123
3 Maui.Plugins.PageResolver 115
4 NTypewriter 109
5 M31.FluentAPI 59
6 DotMake Command-Line 52
7 HttpClientCodeGenerator 45
8 safe-routing 24
9 generator-start 21
10 Tortuga.Shipwright 13
11 PrimaryParameter 6
12 Xtz.StronglyTyped 4
13 MsSql.Adapter 1

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com