Karls.Templates 1.5.0

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

Karls Opinionated Templates NuGet version (Karls.Templates) MIT License

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 least 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.5.0 78 12/18/2024
1.4.22 73 12/17/2024
1.4.21 82 12/9/2024
1.4.20 95 12/6/2024
1.4.19 88 11/15/2024
1.4.17 101 10/14/2024
1.4.16 102 9/23/2024
1.4.15 111 9/17/2024
1.4.14 116 9/4/2024
1.4.13 118 8/26/2024
1.4.12 141 7/17/2024
1.4.11 122 7/8/2024
1.4.10 114 7/1/2024
1.4.9 138 6/19/2024
1.4.8 112 6/18/2024
1.4.7 142 6/8/2024
1.4.6 183 4/30/2024
1.4.5 108 4/22/2024
1.4.4 116 4/22/2024
1.4.3 123 4/17/2024
1.4.2 174 4/16/2024
1.4.1 188 4/12/2024
1.4.0 218 4/4/2024
1.3.3 1,939 1/12/2024
1.3.0 1,045 12/10/2023
1.2.0 308 12/5/2023
1.1.7 411 8/30/2023
1.1.6 301 8/14/2023
1.1.5 198 7/11/2023
1.1.4 206 5/14/2023
1.1.2 371 3/2/2023
1.1.1 320 1/21/2023
1.1.0 281 12/31/2022
1.0.0 263 12/28/2022