A dotnet project file to create a console application with Serilog Logging, Configuration and Dependency Injection configured. Some opinionated settings are set in launchsettings.json, and .editorconfig. AppSettings is its own folder which contains basic .json settings files as a demonstration.
- Determinine appsettings and appsettings.env.json structures
- Configure environment varariable (on machine, in IDE...etc)
- Configure secrets.json if applicable
- Configure publish options (platform, contained, release folder...etc)
- Configure Serilog formatting
dotnet new --install /pathtofolder/BetterConsoleUITemplate
dotnet new --uninstall /pathtofolder/BetterConsoleUITemplate
- Ensure the .template.config folder and its contents are present
https://docs.microsoft.com/en-us/dotnet/core/tools/custom-templates