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.
-
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.
-
NTypewriter
File/code generator using Scriban text templates populated with C# code metadata from Roslyn API.
-
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)
-
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.
-
safe-routing
A C# source generator for ASP.NET Core razor pages and MVC controllers which produces strongly-typed identifiers for routes.
-
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.
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-07I am currently using NTypewriter for code generation.
Project mention: DotMake Command-Line VS command-line-api - a user suggested alternative | libhunt.com/r/dotmake-build/command-line | 2023-12-13
There are other approaches to safe routing, like those that use C# Source Generators
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