.NET Code Generation AI Coding Tools

Tools and frameworks for generating C# and .NET code through templates, scripts, DSLs, and source generators. Includes T4 templates, Roslyn-based generation, and procedural text composition. Does NOT include general code generation for other languages, schema-to-code converters, or configuration tools without code generation focus.

There are 208 .net code generation tools tracked. 2 score above 70 (verified tier). The highest-rated is serenity-is/Serenity at 74/100 with 2,681 stars. 4 of the top 10 are actively maintained.

Get all 208 projects as JSON

curl "https://pt-edge.onrender.com/api/v1/datasets/quality?domain=ai-coding&subcategory=dotnet-code-generation&limit=20"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.

# Tool Score Tier
1 serenity-is/Serenity

Business Apps Made Simple with Asp.Net Core MVC / TypeScript

74
Verified
2 sjh37/EntityFramework-Reverse-POCO-Code-First-Generator

EntityFramework Reverse POCO Code First Generator - Beautifully generated...

74
Verified
3 mganss/XmlSchemaClassGenerator

Generate C# classes from XML Schema files

64
Established
4 dadhi/FastExpressionCompiler

Fast Compiler for C# Expression Trees and the lightweight LightExpression...

63
Established
5 filiptrivan/spiderly

.NET (C#) boilerplate code generator that transforms an EF Core model into a...

56
Established
6 NMFCode/NMF

This repository contains the entire code for the .NET Modeling Framework

55
Established
7 IntelliTect/Coalesce

Quickly build amazing web apps

55
Established
8 skbkontur/TypeScript.ContractGenerator

A tool that can generate TypeScript types from C# classes

54
Established
9 mamift/LinqToXsdCore

LinqToXsd ported to .NET Core (targets .NET Standard 2 for generated code...

53
Established
10 spronkets/DapperCodeGenerator

Simple C# Code Generator to create Database Models and Dapper CRUD

50
Established
11 bonsai-rx/sgen

Tool for automatically generating serialization classes from JSON Schema

49
Emerging
12 filiptrivan/spiderly-website

Spiderly Website - FAQ, Documentation, Pricing, and License Purchasing for...

49
Emerging
13 DD-Silence/Autosar-Configurator

Autosar Configurator for ECU GUI based configuration, checking and code generation.

48
Emerging
14 jonisavo/uicomponents

A small front-end framework for Unity's UIToolkit powered by code generation.

48
Emerging
15 msawczyn/EFDesigner

Entity Framework visual design surface and code-first code generation for...

47
Emerging
16 codesmithtools/Templates

CodeSmith Generator Templates

47
Emerging
17 Avanade/Beef

The Business Entity Execution Framework (Beef) framework, and the underlying...

47
Emerging
18 NeVeSpl/NTypewriter

File/code generator using Scriban text templates populated with C# code...

47
Emerging
19 m31coding/M31.FluentAPI

Generate fluent builders for your C# classes with ease.

46
Emerging
20 NeilMacMullen/Textrude

Code generation from YAML/JSON/CSV models via SCRIBAN templates

45
Emerging
21 BaristaLabs/chrome-dev-tools-generator

Dot Net Core based Chrome Debugger Protocol Generator

45
Emerging
22 moh-hassan/odata2poco

generate POCO classes from OData service

45
Emerging
23 Zaid-Ajaj/Snowflaqe

A dotnet CLI to generate type-safe GraphQL clients for F# and Fable with...

45
Emerging
24 HexaEngine/HexaGen

A code generator for generating bindings for C# for C and COM libraries

45
Emerging
25 olsh/datagrip-poco-generator

An extension for IntelliJ-based IDEs (DataGrip, Rider, etc.) to generate...

44
Emerging
26 ignatandrei/RSCG_Examples

Roslyn Source Code Generators with Examples

44
Emerging
27 Eastrall/Rosalina

Rosalina is a code generation tool for Unity's UI documents. It generates C#...

44
Emerging
28 simeonradivoev/Code-Node-Editor

A graph node editor for generating C# scripts using .Net's CodeDOM in Unity.

43
Emerging
29 MahdiHoseinpoor/Backender

Backender is an open-source project written in C# that creates the backend...

42
Emerging
30 nano-byte/code-generation

Thin wrapper around Roslyn API to simplify generating C# code

42
Emerging
31 jindraivanek/cs2fs

C#->F# transpiler.

42
Emerging
32 yuvalsol/POCOGenerator

POCO Generator traverses the database and generates POCOs from database...

41
Emerging
33 SpatialFocus/EntityFrameworkCore.Extensions

A set of useful extensions for EntityFrameworkCore (Enum Lookup Tables,...

41
Emerging
34 Testura/Testura.Code

Testura.Code is a wrapper around the Roslyn API and used for generation,...

41
Emerging
35 reslava/nuget-package-reslava-result

Visual Result pipelines for .NET — typed errors, Railway-Oriented pipelines,...

41
Emerging
36 iQuarc/Geco

Simple code generator based on a console project, running on .Net core and...

40
Emerging
37 AdamWhiteHat/EntityJustworks

Data first or code first ORM. Entity/object/class/poco to SQL repository...

40
Emerging
38 CslaGenFork/CslaGenFork

O/RM code generator for CSLA.NET 4.3/4.5/4.6/4.7 generating Stored...

40
Emerging
39 credfeto/credfeto-enum-source-generation

C# source generator for producing faster enum lookups

40
Emerging
40 hibisceae/SpreadSheetToScriptableObject

Integrates with Google Spreadsheets to automatically generate C# code and...

40
Emerging
41 greymind/WebApiToTypeScript

A tool for code generating TypeScript endpoints for your ASP.NET Web API controllers

40
Emerging
42 D-Haven/DHaven.Faux

Dotnet version of the Netflix Feign library

39
Emerging
43 amis92/RecordGenerator

C# immutable records generator

39
Emerging
44 iluvadev/PocketBaseClient

C# client to interact with a particular PocketBase application: an ORM...

39
Emerging
45 mrpmorris/AutoRegister

Reflection-free, build-time dependency registration for .NET using Fody

39
Emerging
46 ErnSur/UI-Toolkit-Plus

Boilerplate Code Generation, Tabs, Reorderable Manipulator, Built-in USS Exporter

39
Emerging
47 zspitz/ExpressionTreeToString

String representations of expression trees + library of expression tree objects

38
Emerging
48 OmarElabd/RepositoryGenerator

Generate a repository in seconds by simply providing a namespace to your entities

38
Emerging
49 StefH/ProxyInterfaceSourceGenerator

This project uses Source Generation to generate an interface and a Proxy...

38
Emerging
50 jasondrawdy/Amaterasu

Lightweight licensing library for .NET applications which allows the...

37
Emerging
51 sschmid/Jenny

A lovely .NET Code Generator

37
Emerging
52 FignumOld/TypeGap

A library to bridge the gap between C# (specifically asp.net) and typescript.

36
Emerging
53 NeilQ/DbToys

DbToys offers a set of utilities around database like view table design,...

36
Emerging
54 SeeminglyScience/PSStringTemplate

Create and render templates using the StringTemplate template engine.

36
Emerging
55 rvegajr/ez-db-codegen-core

Easy code generation based on a database schema. The template language this...

35
Emerging
56 batiati/IUPMetadata

This project aims to collect rich metadata information about IUP's elements,...

35
Emerging
57 simontreanor/FunStripe

An F# library to connect to the Stripe API, including code generators to...

35
Emerging
58 RowellKataan/Unity-C-Sharp-Class-Builder

A Unity C# tool that lets the user create custom classes, and generates the code.

35
Emerging
59 codewitch-honey-crisis/Reggie

A regular expression code generator for C#

35
Emerging
60 ignatandrei/appSettingsEditor

app settings editor - powered by Roslyn

34
Emerging
61 nogic1008/T4Sample

How to Use T4 in .NET Core + VSCode

34
Emerging
62 ironcev/awesome-roslyn

Curated list of awesome Roslyn books, tutorials, open-source projects,...

34
Emerging
63 Mrpye/maui-gen

Data form builder for Maui .NET, easily create forms using a data schema

34
Emerging
64 IDisposable/Dynamic

The Dynamic Reflection Library is a small set of classes designed to greatly...

34
Emerging
65 Chizaruu/DataLayerGenerator

Visual Studio extension that auto-generates Entity Framework Core data...

34
Emerging
66 OpenRIAServices/OpenRiaServices.M2M

M2M4RIA is an extension for OpenRIAServices that adds support for...

34
Emerging
67 vbfox/stidgen

Generate Strongly Typed Id types in C#

33
Emerging
68 siyavuyachagi/typesharp

TypeSharp - Automatically generate TypeScript from C# models. Keep your...

33
Emerging
69 jvorssel/Sushi

Converting C# classes to Javascript & Typescript classes in different scopes.

33
Emerging
70 BeauPrime/TinyIL.Mono

Tiny weaver and IL parser for Unity3d using Mono.Cecil

32
Emerging
71 SuperJMN/CodeGeneration

Code Generation sample (courtesy of Javier JBM)

32
Emerging
72 suifei/xsd2code

XSD2Code 是一个功能强大的命令行工具,专门用于将 XML Schema Definition (XSD)...

32
Emerging
73 s2e-lab/RegexEval

Source code for the accepted paper in ICSE-NIER'24: Re(gEx|DoS)Eval:...

32
Emerging
74 jo-neves/ClassStudio

A code generator GUI. Compile C#, XML and TypeScript code to and from...

32
Emerging
75 71/Scry

Visual Studio extension that provides the ability to run C# scripts, giving...

32
Emerging
76 dartk/csharp-sourcegen-csx

Generate C# code from C# scripts

32
Emerging
77 credfeto/credfeto-version-constants-generator

Simple version information constants generator

32
Emerging
78 mmeents/AppSmith

Tree view based UML C# MS-SQL OpenApi Database Api table modeler - Code...

32
Emerging
79 loop8ack/PackScan

PackScan is a .NET toolset for analyzing package licenses and retrieving...

31
Emerging
80 nh43de/cstsd

Generate TypeScript code using Roslyn!

31
Emerging
81 najlot/TemGen

TemGen - Template based code generator

31
Emerging
82 AlkimeeGames/TagLayerTypeGenerator

Generates statically typed classes for the Tags and Layers in your Unity...

31
Emerging
83 dpvreony/nucleotide

Code Generation Toolkit for manipulation of POCO objects

31
Emerging
84 lamg/migrate

Declarative migrations for SQLite databases

31
Emerging
85 JerrettDavis/JD.Efcpt.Build

Database-first EF Core model generation automated via MSBuild.

31
Emerging
86 Atypical-Consulting/Ninjadog

One attribute. Full REST API. Zero boilerplate.

30
Emerging
87 SIDOVSKY/ExpressionDelegates

A tool which generates delegates to properties, fields, methods and...

30
Emerging
88 StefH/Solidity-Examples

Solidity SmartContract Examples

30
Emerging
89 DanielWillett/ReflectionTools

Shared library for various reflection tools for CLR implementations.

30
Emerging
90 gilzoide/godot-csharp-gdextension-bindgen

Automatic C# bindings generator for GDExtension classes (Godot 4.4+)

30
Emerging
91 dartk/ScribanGen

Generate C# code from Scriban templates

30
Emerging
92 vladpazych/Gentitas

Gentitas is a fast code generator for Entitas projects in Unity3D

29
Experimental
93 DanielIndie95/SeleniumAutomationGenerator

Generate Infrastructure project from html

29
Experimental
94 AlkimeeGames/CodeOptimizationSymbols

Automatically sets preprocessor directives based on the Code Optimization...

29
Experimental
95 mrpmorris/AutoLocalize

Automatically localize DataAnnotations validation attributes in .NET

29
Experimental
96 eberlitz/WebApiClientTS

Asp.NET Web API client generator for TypeScript files

29
Experimental
97 peereflits/Shared.Contentful

A dotnet CLI to automatically generate strongly typed C# models/DTO's from...

29
Experimental
98 al-develop/Property-Converter

A small Tool to convert C# AutoProperties to Mvvm Styled Properties.

29
Experimental
99 FlorianRappl/Simplet

A simple C# class generator for static text templates.

29
Experimental
100 mchechulnikov/photosphere-mapping

No longer supported | Simple hight performance object mapper based on...

29
Experimental
101 byCrookie/TypeCode

Develop c# code faster by generating .NET specific boilerplate code using...

28
Experimental
102 Chacaroon/AutoDependencies

Source generator for boilerplate code such as registering and injecting services

27
Experimental
103 mstack/bootcamp-blockchain-smartcontracts

Global Azure Bootcamp 2018 - Ethereum SmartContracts in Azure Blockchain as...

27
Experimental
104 jimbuck/Ion

A small, positively-charged, middleware-based game engine for C#.

27
Experimental
105 SonnyRR/planning-poker

🃏Scrum Poker Planning Blazor WASM application showcasing best practices...

27
Experimental
106 CZEMacLeod/C3D.MSBuild.Tools.EF6.GenerateViews

Codebase for an MSBuild based version of the Entity Framework 6 Power Tools...

27
Experimental
107 kristersz/TypeSync

Roslyn-based utility for keeping TypeScript code in sync with C# source in...

26
Experimental
108 laredoza/.NetScaffolder

Simple, highly flexible scaffolding framework based on T4 Scripts

26
Experimental
109 busterwood/SqlGen

Generate code from SQL Server tables - generator stored procs, table types, C# code

26
Experimental
110 beardgame/fluentsourcegen

Allows using C# source generators using a fluent, type safe interface rather...

25
Experimental
111 eMoflon/emoflon-tool

Source code of eMoflon::TIE-SDM

25
Experimental
112 mrjono1/Oven

Generates C# MVC Backend, React (React-Admin) Frontend

25
Experimental
113 KlestovAlexej/Wattle.DemoServer

Полнофункциональный демонстрационный сервер на базе библиотеки Wattle

25
Experimental
114 sgaliamov/il-lighten-comparer

IComparer and IEqualityComparer runtime generator.

24
Experimental
115 majedmans/core-app

🧠 Elevate memes on Solana by backing them with real-world assets, driving...

24
Experimental
116 levitation-opensource/AsyncToSyncCodeRoundtripSynchroniserForCSharp

In realtime converts async C# code in one folder to synchronous code in...

24
Experimental
117 thomasraskthomsen/ReCode

C# Visual Studio T4 template processing for compiling regular expressions...

24
Experimental
118 xubinhua888/ScarecrowCodeGenerater

基于Razor和SqlSugar实现的代码生成器

23
Experimental
119 cclient/codesmithdemo

定制的代码生成器模版,可以作参考,语言目前只有C# 和GO的例子。

23
Experimental
120 Lunitium/Lunitium

Lunitium is an ecosystem of libraries designed to refine the developer...

23
Experimental
121 dex3r/EasySourceGenerators

Code generation made easy. Create code that generates source - without...

23
Experimental
122 alane-pimenta/Fluent.CodeGen

C# source generator using Fluent API

23
Experimental
123 ymauray/excelst

Compilateur CLI qui génère des fichiers Excel (.xlsx) à partir d'une source...

22
Experimental
124 OleksandrTsvirkun/VoloGen

Roslyn incremental source generators that produce standard method overloads,...

22
Experimental
125 troy-miller0824/.NET-Angular-Full-Stack-Code-Generation-Framework

Spiderly is an open-source .NET (C#) code generation framework that...

22
Experimental
126 k0dep/stator

💉IoC container that uses code generation instead of reflection for managing...

22
Experimental
127 gregyjames/Mapperic

Automatically generate DTO Classes and AutoMapper Configurations.

22
Experimental
128 georgepwall1991/NotifyGen

C# source generator that eliminates INotifyPropertyChanged boilerplate. Add...

22
Experimental
129 NineteenSevenFour/gate

GATE is a generic micro-frontend angular webapp that includes an...

22
Experimental
130 MechanicsDSL/mechanicsdsl-unity

Physically accurate simulation components for Unity (C#) and Unreal Engine...

22
Experimental
131 taublast/FluentColors.Maui

Fluent C# strongly-typed color resources access for .NET MAUI! 🎨

22
Experimental
132 danielpindur/dango

Compile-time safe enum mapping for C# using source generators. Never worry...

22
Experimental
133 gtmh-io/gtmh-s11n

Polymorphic Serialisation of C# Instances

22
Experimental
134 kolosovpetro/Html-Code-Generator

Computer science cheat sheet in C#

22
Experimental
135 Muhamed2017/dopEffectCSharp

🚀 Maximize your C# productivity with advanced techniques in strings, LINQ,...

22
Experimental
136 Bdiebeak/Input-System-Handlers-Generator

Interface generation with all actions from Unity's New Input System.

21
Experimental
137 Abel-Solutions/Abel.CodeGeneration

Abel.CodeGeneration is a suite of tools for generating, compiling, executing...

21
Experimental
138 TheAngryByrd/TypeSafeInternals

Uses Myriad to generate type safe reflection calls to internal...

21
Experimental
139 davnavr/FSharpWrap

Utility that automatically generates F# modules and functions based on your...

21
Experimental
140 Pzixel/RemoteClient

Created

21
Experimental
141 outerminds/Entia.Unity

Entia.Unity is a full integration of the Entia framework for the Unity game engine.

21
Experimental
142 MarvinDrude/CodeGen.Core

Useful structs and classes for C# Source Generators for when they support...

21
Experimental
143 adrenak/BeneDict

A code generating wizard that works on Fredrik Ludvigsen's...

21
Experimental
144 Chizaruu/InterfaceExtractor

Visual Studio extension to extract interfaces from C# classes and records...

21
Experimental
145 c0ffeeartc/GenEntitas

Entitas code generator using Entitas ECS framework and Roslyn

20
Experimental
146 JohnVonDrashek/MyraUIGenerator

Source generator for Myra UI XML files that creates strongly-typed accessor classes

20
Experimental
147 dadhi/LempTest

Proof-of-concept compile-time Dependency Injection container using LeMP...

20
Experimental
148 dadhi/CSharpTypePrinter

Prints System.Type object as a valid C# literal, e.g. typeof(A.B.C) as...

20
Experimental
149 kris701/PDDLSharp

PDDL Parser, analyser, code generator and much more for C# that is fully...

20
Experimental
150 cgytrus/PER.Tracy

Unofficial C# bindings for Tracy Profiler

20
Experimental
151 andeart/JsonButler

JsonButler generates C# types and files from JSON data, and serializes types...

19
Experimental
152 WSU-EIT/FreeManager

FreeManager is a Blazor WebAssembly application that extends FreeCRM with a...

19
Experimental
153 Avanade/OnRamp

Provides the base for code-generation tooling enabling a rich and...

19
Experimental
154 andeart/JsonButler-IDE

Visual Studio extension that adds several JSON-conversion features within...

19
Experimental
155 codewitch-honey-crisis/rxcg

A regular expression matcher generator for C

19
Experimental
156 mhertzfeld/M3CSCG

M3 C# Code Generator

19
Experimental
157 rokkanen/X44

Visual Studio Template Factory

19
Experimental
158 jheiling/unity-signals-generator

Signals for Unity3D - code generator

19
Experimental
159 DerekGooding/SimpleInjection

Lightweight C# DI container with source generators - automatic service...

19
Experimental
160 ELifeRPG/Code-Generator

Tool which creates Enfusion structs/classes

19
Experimental
161 KlestovAlexej/Wattle.Examples

Примеры использования Wattle

19
Experimental
162 angrifel/gen-mdl

A Source code generator for model definitions

19
Experimental
163 mrange/T4JsonSerializer

Exploring the new JSON Source generator in .NET

18
Experimental
164 SolutionsManagerIt/ReUse

Well designed common collaborative code frameworks with simple main...

18
Experimental
165 mikegoatly/Mappit

An object mapping library using source generators

18
Experimental
166 Psythyst/Psythyst.Core.Cli

Psythyst Code-Generator CLI built on.NET Core

18
Experimental
167 SNathani/PowerCode

PowerCode - An intuitive specification for generating source code.

18
Experimental
168 mchechulnikov/photosphere-di

No longer supported | Simple .NET dependency injection framework based on...

18
Experimental
169 loyso/PetaMeta

meta-circular bootstrapped object editor, written in itself

18
Experimental
170 krishanr/ExtensionCreator

ExtensionCreator is a Windows application designed to help developers reduce...

18
Experimental
171 branc116/units-core

Measure Units Auto-Generated Imperative Procedural General

18
Experimental
172 sgaliamov/illuminator

Yet another wrapper around ILGenerator.

18
Experimental
173 chelh/Exceptions.tt

Simple code generator that builds custom exception classes in C#

17
Experimental
174 lukeholt2/syntax-transformer

Syntax Transforming CLI Utility for C# Projects

17
Experimental
175 essenbee/T4Templates

Code used during some live Codebase Alpha episodes on the topic of T4...

17
Experimental
176 andyld97/Xamarin.Android.LayoutConverter

A little tool that converts XML or AXML-Layout-Files to C# Code!

17
Experimental
177 peteraritchie/GeneratedCodeAssembly

Cache generated code to assembly for quick re-load

17
Experimental
178 Psythyst/Psythyst.Core

Psythyst Code-Generator Core

17
Experimental
179 dartk/csharp-sourcegen-fsx

Generate C# code from F# scripts

17
Experimental
180 jacbz/Thesis

Excel to code converter

17
Experimental
181 ionite34/MinimalApiMapper

Enables MVC-like organization for ASP.NET Core Minimal APIs with full Native...

17
Experimental
182 maxilevi/api-facade

command line utility to extract an abstraction over a class using the façade pattern

17
Experimental
183 andrew-gordon/Gord0.ChunkyMonkey.CodeGenerator

Gord0.ChunkyMonkey.CodeGenerator is a C# Roslyn code generator that...

17
Experimental
184 Antelcat/FlatBuffers

Auto-generate csharp codes from .fbs files

17
Experimental
185 mikaeldui/code-analysis-csharp-extensions

A collection of extensions for Microsoft.CodeAnalysis.CSharp.

17
Experimental
186 mchechulnikov/photosphere-servlocgen

Simple design-time ServiceLocator generator for using in T4 templates.

17
Experimental
187 stalinon/JsonToModelConverter

Генерация кода модели в виде класса C# из Json Schema.

17
Experimental
188 Psythyst/Psythyst

Psythyst Code-Generator Interface(s)

17
Experimental
189 maxanstey-meridian/rivet

End-to-end type safety for .NET + TypeScript. Reads your Roslyn compilation,...

15
Experimental
190 HammerMaximilian/fUML-CSharp

Open-source implementation of the Foundational Semantics for Executable UML...

15
Experimental
191 daniloopinheiro/dopEffectCSharp

Repositório baseado no livro 'Produtivo com C#' de Cláudio Ralha (Casa do...

13
Experimental
192 me-sprws/Typstio

Report Generator based on Typst

13
Experimental
193 MaximTkachenko/dotnet-code-generation-overview-by-example

Source code for...

12
Experimental
194 X39/XCG

X39s Code Generator - Creating your CST (Concrete-Syntax-Tree) with ease

11
Experimental
195 Abrynos/Implement.Net

Implement.Net is a C# library with the primary purpose of implementing...

11
Experimental
196 achingono/dotnet-spawn

dotnet-spawn is a roslyn-based code generator for dotnet that adds files to...

11
Experimental
197 MohmdAliMohmd/3-Tier-Architecture-Solution-Generator

This C# tool automatically generates a complete 3-tier architecture solution...

11
Experimental
198 cythral/cfn-custom-resource

Easily create custom resources for CloudFormation in C#

11
Experimental
199 rlvandaveer/HeliarPlasterTemplates

Contains Plaster templates for quickly creating PowerShell projects and items

11
Experimental
200 filiptrivan/soft-web-app-generator

Spiderly Project Starter Template Infrastructure Initializer

11
Experimental
201 HSyr/BuildDateTimeGenerator

C# source code generator for project build date and time

11
Experimental
202 fkucukkara/redis-playground

A comprehensive .NET 9 demonstration of Redis operations using clean...

11
Experimental
203 NotACat1/T4-SQL-Generator-Project

This project provides a flexible T4 (Text Template Transformation Toolkit)...

11
Experimental
204 karlpothast/apigen.net

.NET Core WebAPI Generator

11
Experimental
205 ga-explorer/TextComposerLib

TextComposerLib contains many integrating classes to implement structured...

11
Experimental
206 sanelli/PrettyCode.StringBuilder

String builder wrapper that helps in generating pretty strings of code.

11
Experimental
207 kalulas/TableCraft.Core

This repository was moved to https://github.com/kalulas/TableCraft

10
Experimental
208 guitarrapc/R.Unity

Get strong typed, autocompleted resources like images, fonts and scenes in...

10
Experimental