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" />
<PackageReference Include="QuinntyneBrown.CodeGenerator.DotNet" />
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
#tool nuget:?package=QuinntyneBrown.CodeGenerator.DotNet&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 | Versions 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.
-
net9.0
- AutoMapper (>= 12.0.0)
- DotLiquid (>= 2.2.677)
- EnvDTE (>= 17.6.36389)
- Humanizer.Core (>= 2.14.1)
- LibGit2Sharp (>= 0.27.2)
- MediatR (>= 12.0.0)
- Microsoft.Build.Locator (>= 1.6.1)
- Microsoft.CodeAnalysis.CSharp (>= 4.7.0)
- Microsoft.CodeAnalysis.Workspaces.Common (>= 4.7.0)
- Microsoft.CodeAnalysis.Workspaces.MSBuild (>= 4.7.0)
- Microsoft.CSharp (>= 4.7.0)
- Microsoft.Extensions.Configuration (>= 7.0.0)
- Microsoft.Extensions.DependencyInjection (>= 7.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 7.0.0)
- Microsoft.Extensions.Hosting.Abstractions (>= 7.0.0)
- Microsoft.Extensions.Logging (>= 7.0.0)
- Microsoft.OpenApi (>= 1.6.14)
- Newtonsoft.Json (>= 13.0.2)
- Octokit (>= 4.0.3)
- QuinntyneBrown.CodeGenerator.Core (>= 1.0.0)
- Serilog.Sinks.Console (>= 4.1.1-dev-00896)
- SharpSimpleNLG (>= 1.3.0)
- System.Collections (>= 4.3.0)
- System.IO.Abstractions (>= 19.2.51)
- System.Reactive (>= 5.0.0)
- System.Reactive.Linq (>= 5.0.0)
- TextCopy (>= 6.2.1)
- TinyMapper (>= 3.0.3)
- YamlDotNet (>= 15.1.2)
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 |