PouryaKit
Get started

Install the templates

Install PouryaKit.Templates at the published version, which every solution it generates pins.

What it is

PouryaKit.Templates is a dotnet new template package with three Project templates: pouryakit-monolith, pouryakit-modular-monolith and pouryakit-service. Each starts a new application from the Proving Sample's business code in one composition.

Name the version

The template package's version becomes the Kit version every generated project pins, as PouryaKitVersion in its Directory.Packages.props. Without a version, the install takes whatever version its sources resolve that day. @ separates the version, as below: Install and generate.

When to use it

Once per machine, and again for each new Kit version you want new solutions to start from. A solution you already generated keeps its version until you change PouryaKitVersion in it.

Install and generate

Install the template package

From nuget.org, at the published version:

Terminal
dotnet new install PouryaKit.Templates@0.1.0-preview.2

The install lists the three templates it added, by name and short name.

Generate a solution

Pick one composition; Choose a template compares them.

Terminal
dotnet new pouryakit-monolith -n Acme.Shop
dotnet new pouryakit-modular-monolith -n Acme.Shop
dotnet new pouryakit-service -n Acme.Stock

Each generates a solution in a folder named after -n, and restores it; --no-restore skips the restore.

Failure messages

Next steps

On this page