Topic: "csharp-sourcegenerator"
riok/mapperly
A .NET source generator for generating object mappings. No runtime reflection.
Language: C# - Size: 5.19 MB - Last synced at: 6 days ago - Pushed at: 7 days ago - Stars: 3,612 - Forks: 191

martinothamar/Mediator
A high performance implementation of Mediator pattern in .NET using source generators.
Language: C# - Size: 1.44 MB - Last synced at: 1 day ago - Pushed at: 2 days ago - Stars: 2,967 - Forks: 132

amis92/csharp-source-generators
A list of C# Source Generators (not necessarily awesome) and associated resources: articles, talks, demos.
Size: 260 KB - Last synced at: 4 days ago - Pushed at: 26 days ago - Stars: 2,267 - Forks: 212

SteveDunn/Vogen
A semi-opinionated library which is a source generator and a code analyser. It Source generates Value Objects
Language: C# - Size: 334 MB - Last synced at: 13 days ago - Pushed at: 13 days ago - Stars: 1,231 - Forks: 71

YairHalberstadt/stronginject
compile time dependency injection for .NET
Language: C# - Size: 1.35 MB - Last synced at: 11 days ago - Pushed at: 2 months ago - Stars: 860 - Forks: 24

domn1995/dunet
C# discriminated union source generator
Language: C# - Size: 513 KB - Last synced at: about 23 hours ago - Pushed at: 22 days ago - Stars: 794 - Forks: 24

sveinungf/spreadcheetah
SpreadCheetah is a high-performance .NET library for generating spreadsheet (Microsoft Excel XLSX) files.
Language: C# - Size: 2.22 MB - Last synced at: about 21 hours ago - Pushed at: about 23 hours ago - Stars: 584 - Forks: 28

devlooped/ThisAssembly
Exposes project and assembly level information as constants in the ThisAssembly class using source generators powered by Roslyn.
Language: C# - Size: 1.65 MB - Last synced at: 4 days ago - Pushed at: 4 days ago - Stars: 485 - Forks: 25

CollinAlpert/Lombok.NET
.NET adaptation for Java's Lombok using Source Generators.
Language: C# - Size: 283 KB - Last synced at: 9 days ago - Pushed at: 11 months ago - Stars: 334 - Forks: 16

christianhelle/refitter
A tool for generating Refit interfaces and contracts from OpenAPI specifications
Language: C# - Size: 4.24 MB - Last synced at: 4 days ago - Pushed at: 4 days ago - Stars: 323 - Forks: 58

JasonBock/Rocks
A mocking library based on the Compiler APIs (Roslyn + Mocks)
Language: C# - Size: 17.6 MB - Last synced at: 3 days ago - Pushed at: 24 days ago - Stars: 319 - Forks: 23

cathei/LinqGen
Alloc-free and fast replacement for Linq, with code generation
Language: C# - Size: 2.2 MB - Last synced at: 8 days ago - Pushed at: about 1 year ago - Stars: 313 - Forks: 11

byme8/ZeroQL
C# GraphQL client with Linq-like syntax
Language: C# - Size: 1000 KB - Last synced at: 26 days ago - Pushed at: 3 months ago - Stars: 308 - Forks: 17

devlooped/SmallSharp
Create, edit and run multiple C# top-level programs in the same project by just selecting the startup program from the start button.
Language: C# - Size: 7.15 MB - Last synced at: 5 days ago - Pushed at: 5 days ago - Stars: 304 - Forks: 13

kant2002/WinFormsComInterop
ComWrappers required to run NativeAOT and WinForms
Language: C# - Size: 761 KB - Last synced at: about 16 hours ago - Pushed at: 10 months ago - Stars: 276 - Forks: 39

Nyrest/FastGenericNew
The ultimate fast alternative to Activator.CreateInstance<T> / new T()
Language: C# - Size: 4.32 MB - Last synced at: 24 days ago - Pushed at: 26 days ago - Stars: 265 - Forks: 10

Tyrrrz/MiniRazor 📦
Portable Razor compiler & code generator
Language: C# - Size: 164 KB - Last synced at: 11 days ago - Pushed at: about 2 years ago - Stars: 229 - Forks: 25

Cat-Lips/GodotSharp.SourceGenerators
C# source generators for the Godot Game Engine
Language: C# - Size: 509 KB - Last synced at: 17 days ago - Pushed at: about 2 months ago - Stars: 201 - Forks: 20

EngRajabi/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.
Language: C# - Size: 431 KB - Last synced at: 3 days ago - Pushed at: 5 months ago - Stars: 195 - Forks: 18

nenoNaninu/TypedSignalR.Client
C# Source Generator to Create Strongly Typed SignalR Clients.
Language: C# - Size: 2.4 MB - Last synced at: 7 days ago - Pushed at: about 1 month ago - Stars: 188 - Forks: 9

davidwengier/SourceGeneratorTemplate
A basic template for writing a C# source generator
Language: C# - Size: 21.5 KB - Last synced at: 3 months ago - Pushed at: over 3 years ago - Stars: 188 - Forks: 29

diegofrata/Generator.Equals
A source code generator for automatically implementing IEquatable<T> using only attributes.
Language: C# - Size: 255 KB - Last synced at: 2 days ago - Pushed at: about 2 months ago - Stars: 161 - Forks: 21

canton7/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.
Language: C# - Size: 504 KB - Last synced at: 4 days ago - Pushed at: 8 months ago - Stars: 156 - Forks: 18

ImmediatePlatform/Immediate.Handlers
Source Generated implementation of the Mediator pattern
Language: C# - Size: 360 KB - Last synced at: 6 days ago - Pushed at: 10 days ago - Stars: 154 - Forks: 4

trampster/JsonSrcGen
Json library that uses .NET 5 Source Generators
Language: C# - Size: 709 KB - Last synced at: 12 days ago - Pushed at: about 4 years ago - Stars: 150 - Forks: 4

davidwengier/SourceGeneratorPlayground
The C# Source Generator Playground
Language: C# - Size: 39.3 MB - Last synced at: 5 months ago - Pushed at: about 4 years ago - Stars: 146 - Forks: 17

ufcpp/StringLiteralGenerator
C# Source Generator for UTF-8 binary literal
Language: C# - Size: 59.6 KB - Last synced at: 17 days ago - Pushed at: about 1 year ago - Stars: 145 - Forks: 3

devlooped/avatar 📦
A modern compile-time generated interception/proxy library
Language: C# - Size: 1.32 MB - Last synced at: 24 days ago - Pushed at: over 2 years ago - Stars: 141 - Forks: 10

HavenDV/DependencyPropertyGenerator
Dependency property, routed event and weak event source generator for WPF/UWP/WinUI/Uno/Avalonia/MAUI platforms.
Language: C# - Size: 1.16 MB - Last synced at: 3 days ago - Pushed at: 8 days ago - Stars: 138 - Forks: 9

31/GodotOnReady
A C# Source Generator that adds convenient onready-like features to your C# scripts in Godot Mono (3.x) without any reflection.
Language: C# - Size: 166 KB - Last synced at: 7 days ago - Pushed at: over 2 years ago - Stars: 125 - Forks: 14

dasMulli/data-builder-generator
Code generator to easily create data builder patterns for your model classes
Language: C# - Size: 45.9 KB - Last synced at: 3 months ago - Pushed at: about 1 year ago - Stars: 117 - Forks: 13

chaowlert/PrimaryConstructor
Generate primary constructor from readonly fields
Language: C# - Size: 37.1 KB - Last synced at: 6 days ago - Pushed at: over 1 year ago - Stars: 107 - Forks: 12

GobieGenerator/Gobie
Simple C# source generation based on custom templates
Language: C# - Size: 1.37 MB - Last synced at: 11 days ago - Pushed at: about 2 years ago - Stars: 106 - Forks: 5

codecentric/net_automatic_interface
.Net Source Generator for Automatic Interfaces
Language: C# - Size: 301 KB - Last synced at: 16 days ago - Pushed at: 4 months ago - Stars: 101 - Forks: 20

MoienTajik/GraphQL.Tools
GraphQL.Tools is a GraphQL to C# compiler (code-generator) which turns your GraphQL schema into a set of C# classes, interfaces, and enums.
Language: C# - Size: 141 KB - Last synced at: 15 days ago - Pushed at: almost 4 years ago - Stars: 99 - Forks: 12

distantcam/AutoCtor
A Roslyn source generator for creating constructors.
Language: C# - Size: 840 KB - Last synced at: 10 days ago - Pushed at: 10 days ago - Stars: 98 - Forks: 5

giladfrid009/SimpleSIMD
Easy to use SIMD accelerated Array and Span methods
Language: C# - Size: 295 KB - Last synced at: 16 days ago - Pushed at: almost 3 years ago - Stars: 92 - Forks: 3

ignatandrei/RSCG_Examples
Roslyn Source Code Generators with Examples
Language: HTML - Size: 1.12 GB - Last synced at: 10 days ago - Pushed at: 10 days ago - Stars: 87 - Forks: 6

beakona/AutoInterface
C# interface-to-member source generator
Language: C# - Size: 262 KB - Last synced at: 18 days ago - Pushed at: about 2 months ago - Stars: 84 - Forks: 11

mostmand/Cloneable
Auto generate Clone method using C# Source Generator
Language: C# - Size: 53.7 KB - Last synced at: 15 days ago - Pushed at: over 2 years ago - Stars: 84 - Forks: 12

hermanussen/JsonByExampleGenerator
Generate classes based on example json files in your project. Uses a C# 9 source generator.
Language: C# - Size: 666 KB - Last synced at: 5 months ago - Pushed at: over 2 years ago - Stars: 80 - Forks: 9

RudolfKurkaMs/StructPacker
Low-level, lightweight and performance-focused serializer for C# struct types that uses Source Generators technology.
Language: C# - Size: 2 MB - Last synced at: 10 days ago - Pushed at: about 3 years ago - Stars: 78 - Forks: 7

TheArchitectDev/Architect.DomainModeling
A complete Domain-Driven Design (DDD) toolset for implementing domain models, including base types and source generators.
Language: C# - Size: 210 KB - Last synced at: 15 days ago - Pushed at: 8 months ago - Stars: 73 - Forks: 5

mknejp/dotvariant
A type-safe and space-efficient sum type for C# (comparable to discriminated unions in C or C++)
Language: C# - Size: 589 KB - Last synced at: 8 days ago - Pushed at: about 1 year ago - Stars: 73 - Forks: 3

jitbit/MapDataReader
Super fast mapping DataReader to strongly typed object, Using AOT source generator.
Language: C# - Size: 101 KB - Last synced at: 11 days ago - Pushed at: over 1 year ago - Stars: 73 - Forks: 12

pCYSl5EDgo/EmbeddingResourceCSharp
Embed resource files more C# programmer friendly!
Language: C# - Size: 89.8 KB - Last synced at: 17 days ago - Pushed at: over 1 year ago - Stars: 71 - Forks: 1

ZingBallyhoo/StackXML
Stack based zero-allocation XML serializer and deserializer powered by C# 9 source generators
Language: C# - Size: 169 KB - Last synced at: 11 days ago - Pushed at: 11 days ago - Stars: 66 - Forks: 8

kant2002/SqlMarshal
Generates data access using stored procedures
Language: C# - Size: 261 KB - Last synced at: about 1 month ago - Pushed at: 8 months ago - Stars: 63 - Forks: 6

sang-hyeon/Plastic 📦
This project provides encapsulation of things like Domain, Application Rules, Business Rules or Business Logic in Application.
Language: C# - Size: 544 KB - Last synced at: 9 days ago - Pushed at: about 1 year ago - Stars: 62 - Forks: 5

k94ll13nn3/AutoConstructor
C# source generator that generates a constructor from readonly fields/properties in a class or struct
Language: C# - Size: 523 KB - Last synced at: 8 days ago - Pushed at: 8 days ago - Stars: 59 - Forks: 4

VocaDB/ResXFileCodeGenerator 📦
VocaDb.ResXFileCodeGenerator is a C# source generator to generate strongly-typed resource classes for looking up localized strings.
Language: C# - Size: 185 KB - Last synced at: 12 days ago - Pushed at: over 2 years ago - Stars: 59 - Forks: 12

hanachiru/RapidEnum
Enum utility with SourceGenerator for C#/.NET
Language: C# - Size: 589 KB - Last synced at: 2 days ago - Pushed at: 2 days ago - Stars: 58 - Forks: 2

fiseni/SmartAnnotations
A library for .NET that uses source generators to automatically generate data annotations for your models.
Language: C# - Size: 396 KB - Last synced at: 12 days ago - Pushed at: over 4 years ago - Stars: 58 - Forks: 6

martinothamar/WrapperValueObject
A .NET source generator for creating simple value objects wrapping primitive types.
Language: C# - Size: 51.8 KB - Last synced at: 12 days ago - Pushed at: almost 3 years ago - Stars: 53 - Forks: 3

DevTeam/Immutype
Immutability is easy!
Language: C# - Size: 142 KB - Last synced at: 13 days ago - Pushed at: 13 days ago - Stars: 51 - Forks: 3

YairHalberstadt/SpanLinq
Linq for Span<T> using SourceGenerators
Language: C# - Size: 110 KB - Last synced at: about 1 year ago - Pushed at: over 4 years ago - Stars: 48 - Forks: 1

x2bool/mockup
Zero-reflection, compile-time mocking library based on C# source generators
Language: C# - Size: 66.4 KB - Last synced at: 9 days ago - Pushed at: 12 months ago - Stars: 47 - Forks: 1

DouglasDwyer/Imp.NET
Imp.NET is a fast, high-level, object-oriented C# networking library that supports the invocation of remote methods through proxy interface objects.
Language: C# - Size: 6.45 MB - Last synced at: 5 days ago - Pushed at: over 3 years ago - Stars: 47 - Forks: 1

Jalalx/HttpClientCodeGenerator
HttpClientGenerator is a tool that uses the Roslyn code generator feature to write boilerplate HttpClient code for you.
Language: C# - Size: 96.7 KB - Last synced at: about 1 month ago - Pushed at: 10 months ago - Stars: 46 - Forks: 2

koenbeuk/ScenarioTests
ScenarioTests are a different way of writing tests with XUnit. The goal is to be able to write tests like you would write notebooks. ScenarioTests are great for documentation and integration/e2e tests.
Language: C# - Size: 416 KB - Last synced at: 1 day ago - Pushed at: almost 3 years ago - Stars: 46 - Forks: 3

MelGrubb/BuilderGenerator
A source-generator-based implementation of the Builder pattern
Language: C# - Size: 817 KB - Last synced at: 4 days ago - Pushed at: 6 months ago - Stars: 43 - Forks: 9

Ceiridge/BetterEnums
Actual C# Enums with values and better performance as a source generator
Language: C# - Size: 25.4 KB - Last synced at: 22 days ago - Pushed at: over 1 year ago - Stars: 43 - Forks: 2

filiptrivan/spiderly
.NET (C#) boilerplate code generator that transforms an EF Core model into a fully customizable .NET (C#) + Angular web app
Language: C# - Size: 36.7 MB - Last synced at: 4 days ago - Pushed at: about 1 month ago - Stars: 42 - Forks: 10

ycanardeau/ResXGenerator
ResXGenerator is a C# source generator to generate strongly-typed resource classes for looking up localized strings.
Language: C# - Size: 220 KB - Last synced at: 21 days ago - Pushed at: over 1 year ago - Stars: 41 - Forks: 5

RyotaMurohoshi/ValueObjectGenerator
ValueObjectGenerator is Generator for ValueObjects.
Language: C# - Size: 13.7 KB - Last synced at: 5 months ago - Pushed at: almost 5 years ago - Stars: 41 - Forks: 1

IGood/boilerplatezero
boilerplatezero is a collection of C# source generators
Language: C# - Size: 129 KB - Last synced at: 7 days ago - Pushed at: almost 2 years ago - Stars: 40 - Forks: 4

Elskom/GitBuildInfo.SourceGenerator
Source Generator for dumping the git branch information, commit hash, and if the working tree is dirty or clean on projects that install this and applies them as an assembly level attribute.
Language: C# - Size: 116 KB - Last synced at: 21 days ago - Pushed at: over 3 years ago - Stars: 40 - Forks: 1

AvaloniaUtils/ShowMeTheXaml.Avalonia
A Avalonia control making it easy to show the corresponding XAML for custom styles and controls
Language: C# - Size: 202 KB - Last synced at: 22 days ago - Pushed at: about 2 months ago - Stars: 38 - Forks: 2

onsatoci/InterfaceGenerator
A simple source generator that creates interfaces by implementations.
Language: C# - Size: 58.6 KB - Last synced at: 10 days ago - Pushed at: over 1 year ago - Stars: 38 - Forks: 15

devlooped/StructId
Automatic implemention of stronly typed IDs via record structs with compile-time feature auto-detection
Language: C# - Size: 264 KB - Last synced at: 1 day ago - Pushed at: 4 days ago - Stars: 37 - Forks: 1

ImmediatePlatform/Immediate.Apis
Source Generated registrations connecting Immediate.Handlers and minimal APIs
Language: C# - Size: 237 KB - Last synced at: 10 days ago - Pushed at: 10 days ago - Stars: 37 - Forks: 1

Burgyn/MMLib.MediatR.Generators
Language: C# - Size: 188 KB - Last synced at: 30 days ago - Pushed at: over 2 years ago - Stars: 37 - Forks: 4

nemesissoft/Nemesis.TextParsers
Parse any type from string in efficient way
Language: C# - Size: 1.86 MB - Last synced at: 4 months ago - Pushed at: 4 months ago - Stars: 35 - Forks: 4

lsoft/DpdtInject
Highly efficient compile-time general purpose DI container based on C# source generators.
Language: C# - Size: 4.12 MB - Last synced at: about 1 month ago - Pushed at: about 3 years ago - Stars: 34 - Forks: 3

cezarypiatek/GRPC-Mock-Server
Super fast, platform independent, standalone component for mocking GRPC services using WireMock.NET stubbing engine
Language: C# - Size: 93.8 KB - Last synced at: 18 days ago - Pushed at: 10 months ago - Stars: 33 - Forks: 2

daviddotcs/safe-routing
A C# source generator for ASP.NET Core razor pages and MVC controllers which produces strongly-typed identifiers for routes.
Language: C# - Size: 378 KB - Last synced at: 19 days ago - Pushed at: 12 months ago - Stars: 33 - Forks: 2

BlazorOcticons/BlazorOcticons
BlazorOcticons is an easy-to-use GitHub Octicons built as customizable .razor components
Language: HTML - Size: 1.15 MB - Last synced at: 2 days ago - Pushed at: over 1 year ago - Stars: 32 - Forks: 4

jasonswearingen/NotNot.AppSettings 📦
Automatically create strongly typed C# settings objects from AppSettings.json. Uses Source Generators. Includes a simple deserialization helper for when you are using Dependency Injection, or not.
Language: C# - Size: 579 KB - Last synced at: 11 days ago - Pushed at: 7 months ago - Stars: 31 - Forks: 0

krasin-ga/matryoshki
High-performance zero-reflection approach to C# metaprogramming
Language: C# - Size: 199 KB - Last synced at: 11 days ago - Pushed at: 11 months ago - Stars: 31 - Forks: 0

Spinnernicholas/EnumFastToStringDotNet
This is a Visual Studio C# source generator for automatically generating enum extension methods that implement a switch expression based ToString method. Why? The default enum ToString method implements a binary search which is great for large lists but becomes time and memory inefficient for a just a few items when compared to a switch expression.
Language: C# - Size: 28.3 KB - Last synced at: 5 months ago - Pushed at: over 3 years ago - Stars: 31 - Forks: 2

Kros-sk/Kros.Generators.Flattening
Language: C# - Size: 53.7 KB - Last synced at: 16 days ago - Pushed at: about 4 years ago - Stars: 31 - Forks: 3

AnderssonPeter/Dolly
Clone .net objects using Source Generators
Language: C# - Size: 83 KB - Last synced at: 22 days ago - Pushed at: about 2 months ago - Stars: 29 - Forks: 5

berhir/SignalR.Modules
Modular SignalR with a shared connection using a C# Source Generator
Language: C# - Size: 384 KB - Last synced at: about 2 years ago - Pushed at: almost 4 years ago - Stars: 29 - Forks: 5

jeppevammenkristensen/auto-spectre
Source generator project to generate classes that can be used in a console to prompt for values using Spectre.Console
Language: C# - Size: 363 KB - Last synced at: 15 days ago - Pushed at: 4 months ago - Stars: 28 - Forks: 0

thenameless314159/SourceGeneratorUtils
.NET standard 2.0 utils and helpers to write source files (for source generators and general purpose)
Language: C# - Size: 168 KB - Last synced at: 20 days ago - Pushed at: almost 2 years ago - Stars: 27 - Forks: 1

Ludovicdln/Breezy
Micro ORM with source generator
Language: C# - Size: 57.6 KB - Last synced at: 18 days ago - Pushed at: about 2 years ago - Stars: 27 - Forks: 1

Ohorodnikov/AutoDto
Auto copy properties from bl model to dto
Language: C# - Size: 7.01 MB - Last synced at: about 1 month ago - Pushed at: almost 2 years ago - Stars: 26 - Forks: 0

roeibajayo/SourceGeneratorQuery
C# SourceGenerator helper which helps you query your files, and adds LINQ support
Language: C# - Size: 23.4 KB - Last synced at: about 1 month ago - Pushed at: over 2 years ago - Stars: 26 - Forks: 2

beardgame/fluentsourcegen
Allows using C# source generators using a fluent, type safe interface rather than string templating.
Language: C# - Size: 145 KB - Last synced at: 4 months ago - Pushed at: 4 months ago - Stars: 24 - Forks: 0

leoformaggi/enum-utilities-generator
A source generator to generate compile-time mapping of enums and description attributes
Language: C# - Size: 41 KB - Last synced at: 8 days ago - Pushed at: about 3 years ago - Stars: 24 - Forks: 4

archi-Doc/Tinyhand
Tiny and simple data format/serializer.
Language: C# - Size: 2.77 MB - Last synced at: 5 days ago - Pushed at: 5 days ago - Stars: 23 - Forks: 3

coplt/Coplt.Union
Tagged union for c#
Language: C# - Size: 176 KB - Last synced at: 11 days ago - Pushed at: about 1 month ago - Stars: 22 - Forks: 2

credfeto/credfeto-enum-source-generation
C# source generator for producing faster enum lookups
Language: C# - Size: 3.38 MB - Last synced at: 1 day ago - Pushed at: 1 day ago - Stars: 20 - Forks: 1

hermanussen/CompileTimeMethodExecutionGenerator
A .NET 5 source generator proof of concept that allows executing a method during compilation, so that it can be really fast during runtime.
Language: C# - Size: 16.6 KB - Last synced at: 10 months ago - Pushed at: almost 5 years ago - Stars: 20 - Forks: 3

Andreas-Dorfer/base-types
Fight primitive obsession and create expressive domain models with source generators.
Language: C# - Size: 455 KB - Last synced at: 8 days ago - Pushed at: over 1 year ago - Stars: 18 - Forks: 2

HamedFathi/EnumerationClassGenerator
A C# source generator to create an enumeration class from an enum type.
Language: C# - Size: 24.4 KB - Last synced at: 12 days ago - Pushed at: about 3 years ago - Stars: 18 - Forks: 3

binwan-dev/Kadder
C# 高扩展、简单易用的Grpc解决方案
Language: C# - Size: 4.95 MB - Last synced at: about 1 year ago - Pushed at: about 1 year ago - Stars: 17 - Forks: 5

cythral/lambdajection
Framework for building AWS Lambdas using dependency injection and aspect-oriented programming.
Language: C# - Size: 1.95 MB - Last synced at: 2 days ago - Pushed at: over 1 year ago - Stars: 16 - Forks: 1

CodingFlow/decorator-generator
Source generator for decorator pattern boilerplate code in C#.
Language: C# - Size: 1.58 MB - Last synced at: 18 days ago - Pushed at: about 1 year ago - Stars: 15 - Forks: 5

HamedFathi/MockableStaticGenerator
A C# source generator to make an interface and a class wrapper to test static and extension methods.
Language: C# - Size: 84 KB - Last synced at: 17 days ago - Pushed at: almost 3 years ago - Stars: 15 - Forks: 1
