FluentCodeGenTool 0.0.2

dotnet tool install --global FluentCodeGenTool --version 0.0.2
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local FluentCodeGenTool --version 0.0.2
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=FluentCodeGenTool&version=0.0.2
                    
nuke :add-package FluentCodeGenTool --version 0.0.2
                    

Fluent Code Generation Tool

A lightweight and flexible code generation tool designed for .NET projects. Originally focused on CRUD scaffolding, it has evolved into a general-purpose C# code generator. The tool uses reflection and Roslyn to process types and generate partial models or proxies.

โœจ Features

  • ๐Ÿ” Reflection-based type discovery
  • ๐Ÿง  Semantic analysis via Roslyn
  • โš™๏ธ Flexible pipeline for code transformations
  • ๐Ÿ“ Generates .g.cs files for partial class extension
  • ๐Ÿงผ Automatically injects required using directives
  • ๐Ÿš€ Designed for integration with CI/CD or build-time code generation

๐Ÿ’ก Use Cases

  • Generating proxy models
  • Creating DTOs or API contracts
  • Automating repetitive boilerplate
  • Preparing source code for other generators

๐Ÿ“ฆ Installation

dotnet add package FluentCodeGenTool

Or use as a CLI tool:

dotnet tool install --global FluentCodeGenTool

๐Ÿ› ๏ธ Usage

fluentcodegen <AssemblyPath> <OutputDirectory>

Example:

FluentCodeGenTool C:/MyProject/bin/Debug/net6.0/MyProject.dll C:/MyProject/Generated

๐Ÿ“š How It Works

  1. Scans the provided assembly for types containing a nested Configurator class.
  2. Executes code generation pipelines based on IModelGenerationConfigurator.
  3. Generates new .g.cs files into the specified output directory.
  4. Injects proper using directives for all referenced types, including generated ones.

๐Ÿงฉ Extension Points

You can customize behavior by implementing:

  • IModelGenerationConfigurator
  • Custom steps in GenerationPipeline

This allows powerful modular generation tailored to your project's needs.

๐Ÿ“„ License

MIT License โ€” see LICENSE for details.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
0.0.2 127 5/17/2025