Use boilerplate solution with “dotnet new” and stay DRY

dotnet new

The easiest way

template_project_name
└───.template.config
template.json
{
"$schema": "http://json.schemastore.org/template",
"author": "Me",
"classifications": [
"Organization",
"Console",
"C#"
],
"identity": "shortNameOfTemplate",
"name": "Description of the template",
"shortName": "shortNameOfTemplate",
"tags": {
"language": "C#",
"type": "project"
},
"symbols": {
"projectName": {
"type": "parameter",
"datatype": "text",
"replaces": "TemplateAppSample",
"defaultValue": "TemplateAppSample"
}
}
}
dotnet new -i <absoluteOrRelativePath>
dotnet new shortNameOfTemplate

The advanced way

dotnet new -i MyTemplatePack::1.0.0 --nuget-source  http://MyPrivateNuGetServer/v3/index.json

Browsing, Updating and Uninstalling of Templates

dotnet new -u <absolutePath>
dotnet new -u MyTemplatePack

References

--

--

--

All opinions are my own || Software Developer, learner, perfectionist and entrepreneur-kind person, nonconformist. Always seeks for the order and completeness.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

if you are taking advice, interviewing, or communicating, it helps to know what you are working…

How to create VPC in Terraform and AWS networking using Terraform(Part : 1)

Proper strings normalization for comparison purpose

OpenFaaS multi-stage with Istio on Kubernetes

Bootstrap 4 custom Layout Builder layouts

Agile is a Round Peg in a Square World

JS in Pipeline (3): Docker and Local Development Environment (3)

A Basic Guide to VOIP Packet analysis through Wireshark

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Alexander Goida

Alexander Goida

All opinions are my own || Software Developer, learner, perfectionist and entrepreneur-kind person, nonconformist. Always seeks for the order and completeness.

More from Medium

.NET Core C# Development Setup On Apple Silicon Mac

Setting up self-signed SSL certificates for local development in WSL2

Something I Learned This Week: SSH and SFTP in C#

Debugging into NuGet packages