The starter project provides a simple setup of .NET generic host, Marten database, a project structure inspired by Vertical Slice Architecture and some simple code examples.
This project uses just (a command runner) for running some frequently used commands. I created a justfile with a set of default recipes.
But you don't have to use it. Feel free to use your favourite way to run commands/scripts.
Execute update
recipe using just:
just update
Execute build
recipe using just:
just build
Execute publish
recipe using just. At this step, all output files will be copied to resources folder as configured in .csproj
files.
just publish
This recipe also receives rest parameters and pass it to dotnet
command. If you wish to publish the project with Debug configuration, use this:
just publish -c Debug
Execute run
recipe using just:
just run
There is a default recipe if you don't specify any recipe for just which will execute both publish
and run
recipes. If you want to run the project after publishing, then just type this in the shell:
just