.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 204 .net code generation tools tracked. 1 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 204 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...

67
Established
3 mganss/XmlSchemaClassGenerator

Generate C# classes from XML Schema files

60
Established
4 dadhi/FastExpressionCompiler

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

56
Established
5 IntelliTect/Coalesce

Quickly build amazing web apps

51
Established
6 skbkontur/TypeScript.ContractGenerator

A tool that can generate TypeScript types from C# classes

50
Established
7 filiptrivan/spiderly

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

49
Emerging
8 NMFCode/NMF

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

48
Emerging
9 spronkets/DapperCodeGenerator

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

47
Emerging
10 mamift/LinqToXsdCore

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

46
Emerging
11 bonsai-rx/sgen

Tool for automatically generating serialization classes from JSON Schema

42
Emerging
12 filiptrivan/spiderly-website

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

42
Emerging
13 DD-Silence/Autosar-Configurator

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

41
Emerging
14 jonisavo/uicomponents

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

41
Emerging
15 msawczyn/EFDesigner

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

40
Emerging
16 NeVeSpl/NTypewriter

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

40
Emerging
17 ignatandrei/RSCG_Examples

Roslyn Source Code Generators with Examples

40
Emerging
18 Avanade/Beef

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

40
Emerging
19 codesmithtools/Templates

CodeSmith Generator Templates

40
Emerging
20 m31coding/M31.FluentAPI

Generate fluent builders for your C# classes with ease.

39
Emerging
21 HexaEngine/HexaGen

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

38
Emerging
22 Zaid-Ajaj/Snowflaqe

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

38
Emerging
23 BaristaLabs/chrome-dev-tools-generator

Dot Net Core based Chrome Debugger Protocol Generator

38
Emerging
24 siyavuyachagi/typesharp

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

38
Emerging
25 NeilMacMullen/Textrude

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

38
Emerging
26 moh-hassan/odata2poco

generate POCO classes from OData service

38
Emerging
27 Eastrall/Rosalina

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

37
Emerging
28 hibisceae/SpreadSheetToScriptableObject

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

37
Emerging
29 reslava/nuget-package-reslava-result

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

37
Emerging
30 olsh/datagrip-poco-generator

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

37
Emerging
31 simeonradivoev/Code-Node-Editor

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

36
Emerging
32 jindraivanek/cs2fs

C#->F# transpiler.

35
Emerging
33 MahdiHoseinpoor/Backender

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

35
Emerging
34 iQuarc/Geco

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

35
Emerging
35 nano-byte/code-generation

Thin wrapper around Roslyn API to simplify generating C# code

35
Emerging
36 Testura/Testura.Code

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

34
Emerging
37 SpatialFocus/EntityFrameworkCore.Extensions

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

34
Emerging
38 yuvalsol/POCOGenerator

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

34
Emerging
39 greymind/WebApiToTypeScript

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

33
Emerging
40 AdamWhiteHat/EntityJustworks

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

33
Emerging
41 CslaGenFork/CslaGenFork

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

33
Emerging
42 credfeto/credfeto-enum-source-generation

C# source generator for producing faster enum lookups

33
Emerging
43 ErnSur/UI-Toolkit-Plus

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

32
Emerging
44 iluvadev/PocketBaseClient

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

32
Emerging
45 D-Haven/DHaven.Faux

Dotnet version of the Netflix Feign library

32
Emerging
46 amis92/RecordGenerator

C# immutable records generator

32
Emerging
47 mrpmorris/AutoRegister

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

32
Emerging
48 OmarElabd/RepositoryGenerator

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

31
Emerging
49 zspitz/ExpressionTreeToString

String representations of expression trees + library of expression tree objects

31
Emerging
50 StefH/ProxyInterfaceSourceGenerator

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

31
Emerging
51 sschmid/Jenny

A lovely .NET Code Generator

30
Emerging
52 jasondrawdy/Amaterasu

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

30
Emerging
53 Chizaruu/DataLayerGenerator

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

30
Emerging
54 NeilQ/DbToys

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

29
Experimental
55 FignumOld/TypeGap

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

29
Experimental
56 SeeminglyScience/PSStringTemplate

Create and render templates using the StringTemplate template engine.

29
Experimental
57 batiati/IUPMetadata

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

28
Experimental
58 codewitch-honey-crisis/Reggie

A regular expression code generator for C#

28
Experimental
59 RowellKataan/Unity-C-Sharp-Class-Builder

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

28
Experimental
60 rvegajr/ez-db-codegen-core

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

28
Experimental
61 simontreanor/FunStripe

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

28
Experimental
62 mrpmorris/AutoLocalize

Automatically localize DataAnnotations validation attributes in .NET

27
Experimental
63 ironcev/awesome-roslyn

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

27
Experimental
64 ignatandrei/appSettingsEditor

app settings editor - powered by Roslyn

27
Experimental
65 IDisposable/Dynamic

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

27
Experimental
66 Mrpye/maui-gen

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

27
Experimental
67 nogic1008/T4Sample

How to Use T4 in .NET Core + VSCode

27
Experimental
68 JerrettDavis/JD.Efcpt.Build

Database-first EF Core model generation automated via MSBuild.

27
Experimental
69 lamg/migrate

Declarative migrations for SQLite databases

27
Experimental
70 dpvreony/nucleotide

Code Generation Toolkit for manipulation of POCO objects

27
Experimental
71 OpenRIAServices/OpenRiaServices.M2M

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

27
Experimental
72 suifei/xsd2code

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

26
Experimental
73 jvorssel/Sushi

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

26
Experimental
74 vbfox/stidgen

Generate Strongly Typed Id types in C#

26
Experimental
75 laredoza/.NetScaffolder

Simple, highly flexible scaffolding framework based on T4 Scripts

26
Experimental
76 dartk/csharp-sourcegen-csx

Generate C# code from C# scripts

25
Experimental
77 credfeto/credfeto-version-constants-generator

Simple version information constants generator

25
Experimental
78 SuperJMN/CodeGeneration

Code Generation sample (courtesy of Javier JBM)

25
Experimental
79 eMoflon/emoflon-tool

Source code of eMoflon::TIE-SDM

25
Experimental
80 BeauPrime/TinyIL.Mono

Tiny weaver and IL parser for Unity3d using Mono.Cecil

25
Experimental
81 71/Scry

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

25
Experimental
82 s2e-lab/RegexEval

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

25
Experimental
83 jo-neves/ClassStudio

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

25
Experimental
84 mmeents/AppSmith

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

25
Experimental
85 majedmans/core-app

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

24
Experimental
86 dex3r/EasySourceGenerators

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

24
Experimental
87 loop8ack/PackScan

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

24
Experimental
88 nh43de/cstsd

Generate TypeScript code using Roslyn!

24
Experimental
89 najlot/TemGen

TemGen - Template based code generator

24
Experimental
90 AlkimeeGames/TagLayerTypeGenerator

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

24
Experimental
91 Lunitium/Lunitium

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

24
Experimental
92 StefH/Solidity-Examples

Solidity SmartContract Examples

23
Experimental
93 DanielWillett/ReflectionTools

Shared library for various reflection tools for CLR implementations.

23
Experimental
94 Atypical-Consulting/Ninjadog

One attribute. Full REST API. Zero boilerplate.

23
Experimental
95 SonnyRR/planning-poker

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

23
Experimental
96 SIDOVSKY/ExpressionDelegates

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

23
Experimental
97 dartk/ScribanGen

Generate C# code from Scriban templates

23
Experimental
98 gilzoide/godot-csharp-gdextension-bindgen

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

23
Experimental
99 AlkimeeGames/CodeOptimizationSymbols

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

22
Experimental
100 eberlitz/WebApiClientTS

Asp.NET Web API client generator for TypeScript files

22
Experimental
101 ymauray/excelst

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

22
Experimental
102 OleksandrTsvirkun/VoloGen

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

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

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

22
Experimental
104 peereflits/Shared.Contentful

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

22
Experimental
105 FlorianRappl/Simplet

A simple C# class generator for static text templates.

22
Experimental
106 mchechulnikov/photosphere-mapping

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

22
Experimental
107 vladpazych/Gentitas

Gentitas is a fast code generator for Entitas projects in Unity3D

22
Experimental
108 NineteenSevenFour/gate

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

22
Experimental
109 MechanicsDSL/mechanicsdsl-unity

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

22
Experimental
110 danielpindur/dango

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

22
Experimental
111 DanielIndie95/SeleniumAutomationGenerator

Generate Infrastructure project from html

22
Experimental
112 al-develop/Property-Converter

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

22
Experimental
113 byCrookie/TypeCode

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

21
Experimental
114 Chacaroon/AutoDependencies

Source generator for boilerplate code such as registering and injecting services

20
Experimental
115 CZEMacLeod/C3D.MSBuild.Tools.EF6.GenerateViews

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

20
Experimental
116 mstack/bootcamp-blockchain-smartcontracts

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

20
Experimental
117 georgepwall1991/NotifyGen

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

20
Experimental
118 JohnVonDrashek/MyraUIGenerator

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

20
Experimental
119 jimbuck/Ion

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

20
Experimental
120 kristersz/TypeSync

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

19
Experimental
121 WSU-EIT/FreeManager

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

19
Experimental
122 busterwood/SqlGen

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

19
Experimental
123 mrjono1/Oven

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

18
Experimental
124 beardgame/fluentsourcegen

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

18
Experimental
125 taublast/FluentColors.Maui

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

18
Experimental
126 KlestovAlexej/Wattle.DemoServer

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

18
Experimental
127 levitation-opensource/AsyncToSyncCodeRoundtripSynchroniserForCSharp

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

17
Experimental
128 DerekGooding/SimpleInjection

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

17
Experimental
129 thomasraskthomsen/ReCode

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

17
Experimental
130 Chizaruu/InterfaceExtractor

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

17
Experimental
131 sgaliamov/il-lighten-comparer

IComparer and IEqualityComparer runtime generator.

17
Experimental
132 gtmh-io/gtmh-s11n

Polymorphic Serialisation of C# Instances

16
Experimental
133 alane-pimenta/Fluent.CodeGen

C# source generator using Fluent API

16
Experimental
134 cclient/codesmithdemo

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

16
Experimental
135 xubinhua888/ScarecrowCodeGenerater

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

16
Experimental
136 MarvinDrude/CodeGen.Core

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

15
Experimental
137 maxanstey-meridian/rivet

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

15
Experimental
138 HammerMaximilian/fUML-CSharp

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

15
Experimental
139 kolosovpetro/Html-Code-Generator

Computer science cheat sheet in C#

15
Experimental
140 gregyjames/Mapperic

Automatically generate DTO Classes and AutoMapper Configurations.

15
Experimental
141 k0dep/stator

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

15
Experimental
142 Muhamed2017/dopEffectCSharp

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

15
Experimental
143 Bdiebeak/Input-System-Handlers-Generator

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

14
Experimental
144 outerminds/Entia.Unity

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

14
Experimental
145 davnavr/FSharpWrap

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

14
Experimental
146 TheAngryByrd/TypeSafeInternals

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

14
Experimental
147 Pzixel/RemoteClient

Created

14
Experimental
148 Abel-Solutions/Abel.CodeGeneration

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

14
Experimental
149 adrenak/BeneDict

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

14
Experimental
150 dadhi/CSharpTypePrinter

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

13
Experimental
151 c0ffeeartc/GenEntitas

Entitas code generator using Entitas ECS framework and Roslyn

13
Experimental
152 cgytrus/PER.Tracy

Unofficial C# bindings for Tracy Profiler

13
Experimental
153 kris701/PDDLSharp

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

13
Experimental
154 daniloopinheiro/dopEffectCSharp

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

13
Experimental
155 dadhi/LempTest

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

13
Experimental
156 ionite34/MinimalApiMapper

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

12
Experimental
157 Avanade/OnRamp

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

12
Experimental
158 codewitch-honey-crisis/rxcg

A regular expression matcher generator for C

12
Experimental
159 mikegoatly/Mappit

An object mapping library using source generators

12
Experimental
160 mhertzfeld/M3CSCG

M3 C# Code Generator

12
Experimental
161 andeart/JsonButler

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

12
Experimental
162 ELifeRPG/Code-Generator

Tool which creates Enfusion structs/classes

12
Experimental
163 angrifel/gen-mdl

A Source code generator for model definitions

12
Experimental
164 Antelcat/FlatBuffers

Auto-generate csharp codes from .fbs files

12
Experimental
165 jheiling/unity-signals-generator

Signals for Unity3D - code generator

12
Experimental
166 rokkanen/X44

Visual Studio Template Factory

12
Experimental
167 KlestovAlexej/Wattle.Examples

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

12
Experimental
168 andeart/JsonButler-IDE

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

12
Experimental
169 mrange/T4JsonSerializer

Exploring the new JSON Source generator in .NET

11
Experimental
170 branc116/units-core

Measure Units Auto-Generated Imperative Procedural General

11
Experimental
171 SolutionsManagerIt/ReUse

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

11
Experimental
172 loyso/PetaMeta

meta-circular bootstrapped object editor, written in itself

11
Experimental
173 SNathani/PowerCode

PowerCode - An intuitive specification for generating source code.

11
Experimental
174 achingono/dotnet-spawn

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

11
Experimental
175 sgaliamov/illuminator

Yet another wrapper around ILGenerator.

11
Experimental
176 Psythyst/Psythyst.Core.Cli

Psythyst Code-Generator CLI built on.NET Core

11
Experimental
177 sanelli/PrettyCode.StringBuilder

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

11
Experimental
178 HSyr/BuildDateTimeGenerator

C# source code generator for project build date and time

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

Spiderly Project Starter Template Infrastructure Initializer

11
Experimental
180 rlvandaveer/HeliarPlasterTemplates

Contains Plaster templates for quickly creating PowerShell projects and items

11
Experimental
181 cythral/cfn-custom-resource

Easily create custom resources for CloudFormation in C#

11
Experimental
182 fkucukkara/redis-playground

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

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

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

11
Experimental
184 karlpothast/apigen.net

.NET Core WebAPI Generator

11
Experimental
185 ga-explorer/TextComposerLib

TextComposerLib contains many integrating classes to implement structured...

11
Experimental
186 mchechulnikov/photosphere-di

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

11
Experimental
187 Abrynos/Implement.Net

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

11
Experimental
188 krishanr/ExtensionCreator

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

11
Experimental
189 essenbee/T4Templates

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

10
Experimental
190 andrew-gordon/Gord0.ChunkyMonkey.CodeGenerator

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

10
Experimental
191 mchechulnikov/photosphere-servlocgen

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

10
Experimental
192 jacbz/Thesis

Excel to code converter

10
Experimental
193 maxilevi/api-facade

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

10
Experimental
194 stalinon/JsonToModelConverter

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

10
Experimental
195 Psythyst/Psythyst.Core

Psythyst Code-Generator Core

10
Experimental
196 peteraritchie/GeneratedCodeAssembly

Cache generated code to assembly for quick re-load

10
Experimental
197 kalulas/TableCraft.Core

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

10
Experimental
198 dartk/csharp-sourcegen-fsx

Generate C# code from F# scripts

10
Experimental
199 lukeholt2/syntax-transformer

Syntax Transforming CLI Utility for C# Projects

10
Experimental
200 andyld97/Xamarin.Android.LayoutConverter

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

10
Experimental
201 guitarrapc/R.Unity

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

10
Experimental
202 chelh/Exceptions.tt

Simple code generator that builds custom exception classes in C#

10
Experimental
203 Psythyst/Psythyst

Psythyst Code-Generator Interface(s)

10
Experimental
204 mikaeldui/code-analysis-csharp-extensions

A collection of extensions for Microsoft.CodeAnalysis.CSharp.

10
Experimental

Comparisons in this category