BenjaminMichaelis.Dotnet.Templates 1.1.2

There is a newer version of this package available.
See the version list below for details.
dotnet new install BenjaminMichaelis.Dotnet.Templates::1.1.2                
This package contains a .NET Template Package you can call from the shell/command line.

Dotnet Templates

The repository contains a set of opinionated dotnet new templates. I am happy to receive critique/feedback on the existing templates, so feel free to open issues.

Installing

Use dotnet new install to install the templates.

> dotnet new install BenjaminMichaelis.Dotnet.Templates

To then use a template, navigate to a directory where you want to use the template and use the command

> dotnet new bmichaelis.{templatename}

with templatename being a name of one of the included templates listed below. Ex: dotnet new bmichaelis.nuget

Included Templates (by template name)

Updating

If you have previously installed the templates and want to install the latest version, you can use dotnet new update to update your installed templates.

> dotnet new update

Uninstalling

> dotnet new uninstall BenjaminMichaelis.Dotnet.Templates

Local testing

Build the template package:

> dotnet pack --configuration Release -o .

Install the locally built template package

> dotnet new install . --force

You can now test the template by running:

> dotnet new bmichaelis.{templatename}
> dotnet build
> dotent test --no-build
> dotnet publish --no-build

When done, you can remove the local install of the template package by running:

> dotnet new uninstall .

Adding a new template

  • Add project under the template directory
  • Update .template.config in directory
  • Update dependabot.yml
  • Add to README
  • net8.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
2.0.0 350 3/30/2024
1.1.2 1,933 1/11/2024
1.1.1 1,363 11/28/2023
1.0.1 596 4/3/2023
1.0.0 181 4/3/2023