BenjaminMichaelis.Dotnet.Templates
1.1.1
See the version list below for details.
dotnet new install BenjaminMichaelis.Dotnet.Templates::1.1.1
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.