CodeGenTool 1.0.7

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global CodeGenTool --version 1.0.7
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local CodeGenTool --version 1.0.7
                    
This package contains a .NET tool you can call from the shell/command line.
#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 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. 
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
1.0.8 16 8/2/2025
1.0.7 136 6/23/2025
1.0.6 133 6/23/2025
1.0.5 95 6/21/2025
1.0.4 139 6/19/2025
1.0.3 139 6/19/2025
1.0.2 132 6/19/2025
1.0.1 134 6/19/2025
1.0.0 139 6/19/2025