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
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package FluentCodeGenTool --version 0.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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
- Scans the provided assembly for types containing a nested
Configurator
class. - Executes code generation pipelines based on
IModelGenerationConfigurator
. - Generates new
.g.cs
files into the specified output directory. - 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 | Versions 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 |