SISS.Templates 1.0.2

dotnet new install SISS.Templates::1.0.2                
This package contains a .NET Template Package you can call from the shell/command line.

.NET CI

.NET Templates

Collection of high-quality .NET project templates for building highly scalable applications using best practices.

Available Templates

  • Domain-Driven Design Web API Project Template
  • CQRS Command Class Template
  • CQRS Query Class Template
  • Domain Event Class Template

Domain-Driven Design Web API Project Template

  • Name: Domain-Driven Design Web API Project
  • Short Name: ddd-api
  • Description: Offers a comprehensive starting point for building scalable and maintainable ASP.NET Core Web API applications using DDD principles.
  • Usage:
dotnet new ddd-api -n <YourProjectName>

CQRS Command Class Template

  • Name: CQRS Command Class
  • Short Name: ddd-cqrs-command
  • Description: Streamlines the creation of CQRS command classes, complete with command, handler, and validator for efficient command processing and validation.
  • Usage:
dotnet new ddd-cqrs-command -n <YourActionName>

CQRS Query Class Template

  • Name: CQRS Query Class
  • Short Name: ddd-cqrs-query
  • Description: Simplifies the creation of CQRS query classes, featuring query, handler, and validator for effective query processing and validation.
  • Usage:
dotnet new ddd-cqrs-query -n <YourQueryName>

Domain Event Class Template

  • Name: DDD Domain Event Class
  • Short Name: ddd-event
  • Description: Facilitates the rapid development of domain events within DDD architectures, including event and handler for seamless integration.
  • Usage:
dotnet new ddd-event -n <YourEventName>

Post-Generation Steps

After generating items or projects with these templates, please ensure to:

  1. Open generated files in the editor: The templates are configured to automatically open the primary files in your editor for immediate review and modification.
  2. Adjust namespaces: It's crucial to replace the placeholder namespaces (Domain, Application, Shared) with the actual namespaces specific to your project. This step is essential for the correct integration of the generated classes into your project's structure.

Installation

Packing the Templates

To package these templates into a NuGet package, navigate to the root directory of the templates (where the SISS.Templates.csproj file is located) and run:

dotnet pack

This command generates a NuGet package in the ./bin/Release/ directory.

Installing the Templates

After packing the templates into a NuGet package, install them to your local machine using the following command:

dotnet new install ./bin/Release/SISS.Templates.1.0.0.nupkg

Make sure to adjust the command with the correct version number if it differs.

Uninstallation

To uninstall the templates, use the dotnet new uninstall command followed by the package ID, like so:

dotnet new uninstall SISS.Templates

This will remove the templates from your local machine.

Guides

There are several guides available related to project templates:

  1. Migration guide
  2. Mapper guide
  • net8.0

    • No dependencies.

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.2 181 6/29/2024
1.0.1 99 6/26/2024
1.0.0 190 5/27/2024