CodeGenTool 1.0.7
See the version list below for details.
dotnet tool install --global CodeGenTool --version 1.0.7
dotnet new tool-manifest
dotnet tool install --local CodeGenTool --version 1.0.7
#tool dotnet:?package=CodeGenTool&version=1.0.7
nuke :add-package CodeGenTool --version 1.0.7
CodeGenTool
⚠️ Prerequisite Project Structure
Before using this tool, ensure your microservice project follows the naming convention:
The project names must end with one of the following layers:
API
Business
Repository
Model
For example:
Contoso.UserManagement.API
Contoso.UserManagement.Business
Contoso.UserManagement.Repository
Contoso.UserManagement.Model
The tool depends on this naming convention to properly locate and inject the generated files into the correct projects.
📦 What is CodeGenTool?
CodeGenTool is a .NET command-line utility that automates the creation of boilerplate code for a microservices-based API architecture.
By entering an entity name, the tool generates a fully structured set of C# files, including:
- API Controllers
- Business layer interfaces and implementations
- Repository layer interfaces and implementations
- Corresponding Model class
It also updates the dependency injection configuration automatically (e.g., in Program.cs
or DependencyConfigurator.cs
).
⚙️ Customization Options
Users can selectively include common methods such as:
GetAll
Create
Update
Enable
- ...and more
This makes the scaffolding process flexible, customizable, and fast, aligning with best practices in clean architecture for backend development.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
This package has no dependencies.