Karls.Templates 1.4.5

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

Karls Opinionated Templates NuGet version (Karls.Templates)

This repository contains a collection of templates for the dotnet new command based on my own preferences.

This might not be overly useful for you, but it was a fun experiment and this repo at lest shows of some of the features available when creating your own templates.

Installing

Just run the following command to install the templates.

dotnet new install Karls.Templates

If you have them installed and need to update them you can run the above command again.

Or simply this to update all template packages (which is often a good idea).

dotnet new update

Templates

Opinionated Solution

This template creates a solution with a single Core project (+tests) and some default settings based on my own preferences.

dotnet new karls-solution -n Company.CoolProject

Since version 1.4.0 a flag can be passed to also generate a frontend project based on Vite and other tools. To have this just pass --addFrontendProject when creating the project.

dotnet new karls-solution -n CoolProject --addFrontendProject

The project per default includes a set of Github Actions workflows. If another CI tool is to be used these can be skipped by setting includeGithubActions to false. This will still add a depenadbot configuration though since I host all my projects on Github.

dotnet new karls-solution -n CoolProject --includeGithubActions=false

To see available options, run this.

dotnet new karls-solution --help

References

Includes an adapted version of https://github.com/hrvey/combine-prs-workflow/

  • .NETStandard 2.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.4.5 29 4/22/2024
1.4.4 29 4/22/2024
1.4.3 41 4/17/2024
1.4.2 114 4/16/2024
1.4.1 129 4/12/2024
1.4.0 157 4/4/2024
1.3.3 1,895 1/12/2024
1.3.0 993 12/10/2023
1.2.0 257 12/5/2023
1.1.7 357 8/30/2023
1.1.6 254 8/14/2023
1.1.5 169 7/11/2023
1.1.4 172 5/14/2023
1.1.2 339 3/2/2023
1.1.1 300 1/21/2023
1.1.0 246 12/31/2022
1.0.0 232 12/28/2022