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.
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
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
> dotnet new uninstall BenjaminMichaelis.Dotnet.Templates
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 .
- Add project under the template directory
- Update .template.config in directory
- Update dependabot.yml
- Update build.yml workflow
- Add to README