How to Create a Configurable .NET Project Template

A guide to creating your first configurable .NET project template to supercharge your new projects.

In modern day Cloud software we have tools and practices which make it quicker than ever to deploy our applications at scale. Unfortunately we still find ourselves writing lots of the same boring boilerplate code every time we add new services to our inventory. Having a decent project template allows us to skip all the mundane setup and get straight to the fun and important stuff. It will also create better consistency across our services - consistency is one of the biggest drivers for speed and efficiency in modern software teams.

It is definitely worth investing a good chunk of time in your template project. The power of any effective security, testing or performance techniques used can be multiplied across any new project you start with it! For this guide I will be using my recommended .NET Project Setup with Clean Architecture and Domain-Driven Design, which can be found in another article here. A link to the full code for the template project can be found at the bottom of the article.