QuinntyneBrown.CodeGenerator.DotNet 1.0.0

dotnet add package QuinntyneBrown.CodeGenerator.DotNet --version 1.0.0
                    
NuGet\Install-Package QuinntyneBrown.CodeGenerator.DotNet -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="QuinntyneBrown.CodeGenerator.DotNet" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="QuinntyneBrown.CodeGenerator.DotNet" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="QuinntyneBrown.CodeGenerator.DotNet" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add QuinntyneBrown.CodeGenerator.DotNet --version 1.0.0
                    
#r "nuget: QuinntyneBrown.CodeGenerator.DotNet, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package QuinntyneBrown.CodeGenerator.DotNet@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=QuinntyneBrown.CodeGenerator.DotNet&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=QuinntyneBrown.CodeGenerator.DotNet&version=1.0.0
                    
Install as a Cake Tool

CodeGenerator.DotNet

The .NET-specific code generation module for the CodeGenerator framework. This library provides comprehensive templates and generators for creating C# code, ASP.NET Core applications, and .NET solution structures.

Overview

CodeGenerator.DotNet is the primary module for generating .NET code. It includes:

  • Code Generation Engine: Application builder pattern for flexible code generation
  • Extensive Template Library: 27+ template categories for various .NET patterns
  • Syntax Manipulation: C# syntax tree generation and transformation
  • Solution/Project Scaffolding: Complete .NET solution and project generation

Project Structure

CodeGenerator.DotNet/
├── Artifacts/          # .NET-specific artifact generators
├── Events/             # Generation event definitions
├── Extensions/         # Extension methods
├── Options/            # Configuration options
├── Services/           # Core generation services
├── Syntax/             # C# syntax generators (27 categories)
└── Templates/          # DotLiquid templates
    ├── Angular/        # Angular-related templates
    ├── Api/            # API templates
    ├── Application/    # Application layer templates
    ├── BuildingBlocks/ # Shared building blocks
    ├── Console/        # Console app templates
    ├── DddApp/         # DDD application templates
    ├── Domain/         # Domain layer templates
    ├── Global/         # Global configuration templates
    ├── Infrastructure/ # Infrastructure templates
    ├── IntegrationTests/ # Integration test templates
    ├── Lit/            # Lit component templates
    ├── SharedKernel/   # Shared kernel templates
    ├── SpecFlow/       # SpecFlow test templates
    └── ...             # Additional templates

Key Features

Service Registration

using Microsoft.Extensions.DependencyInjection;

services.AddDotNetServices();

Template Categories

  • API: Controllers, endpoints, middleware
  • Application: Commands, queries, handlers (CQRS)
  • Domain: Entities, aggregates, value objects
  • Infrastructure: DbContext, repositories, configurations
  • Testing: Unit tests, integration tests, SpecFlow

Syntax Generation

The module includes extensive C# syntax generators for:

  • Classes, interfaces, records
  • Methods, properties, fields
  • Attributes, namespaces
  • Lambda expressions
  • Async/await patterns

Dependencies

  • CodeGenerator.Core - Foundation library
  • Microsoft.CodeAnalysis.CSharp - Roslyn APIs
  • DotLiquid - Template engine
  • MediatR - Request/response handling

NuGet Package

  • Package ID: QuinntyneBrown.CodeGenerator.Core
  • Version: 1.0.12

Target Framework

  • .NET 9.0

License

This project is licensed under the MIT License.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  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.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 30 2/3/2026