CodeGenTool 1.0.8
dotnet tool install --global CodeGenTool --version 1.0.8
dotnet new tool-manifest
dotnet tool install --local CodeGenTool --version 1.0.8
#tool dotnet:?package=CodeGenTool&version=1.0.8
nuke :add-package CodeGenTool --version 1.0.8
CodeGenTool
How To Install DO NOT directly click Install button in NuGet Package Manager
Here are the simple steps to install and use it:
- Open Terminal in Visual Studio (Ctrl + ~)
- Type dotnet tool install --global CodeGenTool --version 1.0.8 then hit Enter
- How to use it: in terminal type CodeGen hit enter.
⚠️ 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:
APIBusinessRepositoryModel
For example:
Contoso.UserManagement.APIContoso.UserManagement.BusinessContoso.UserManagement.RepositoryContoso.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:
GetAllCreateUpdateEnable- ...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.