Karls.Templates 1.4.1

There is a newer version of this package available.
See the version list below for details.
dotnet new install Karls.Templates::1.4.1
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.6 128 4/30/2024
1.4.5 71 4/22/2024
1.4.4 72 4/22/2024
1.4.3 84 4/17/2024
1.4.2 120 4/16/2024
1.4.1 136 4/12/2024
1.4.0 163 4/4/2024
1.3.3 1,898 1/12/2024
1.3.0 996 12/10/2023
1.2.0 260 12/5/2023
1.1.7 360 8/30/2023
1.1.6 256 8/14/2023
1.1.5 172 7/11/2023
1.1.4 175 5/14/2023
1.1.2 342 3/2/2023
1.1.1 305 1/21/2023
1.1.0 251 12/31/2022
1.0.0 235 12/28/2022