Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

How to Create a Configurable .NET Project Template

Sign upSign InSign upSign InMember-only storyMatt BentleyFollowLevel Up Coding--ShareA 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.There’s a bunch of options out there for creating project templates: GitHub templates, Spotify Backstage, custom implementations…The most powerful engine that I came across was the dotnet template engine, dotnet new. If you are already a .NET Developer then you get an added benefit of being able to debug and test your template project using different configurations directly in Visual Studio or Rider.dotnet new is built into the .NET CLI and is already used for the default project templates available with .NET. Templates can be installed from a local directory or from Nuget packages for easy distribution.We can either use the dotnet CLI or our IDE to create new projects using a template.There are lots of configuration and transformation options available, which mean your templates can get as sophisticated at you need. Here’s an example from .NET Boxed which has some…----Level Up CodingHead of Engineering at Deloitte. Love learning new technologies and software development practices to take teams to the next level!Matt BentleyinLevel Up Coding--12Victor TimiinLevel Up Coding--25Prathamesh GadekarinLevel Up Coding--8Matt BentleyinBetter Programming--3Matt BentleyinLevel Up Coding--3Esam Magdy--Juntao QiuinITNEXT--12Adam Boucek--Eduardo Silva--Anand Panchal--HelpStatusWritersBlogCareersPrivacyTermsAboutText to speechTeams



This post first appeared on VedVyas Articles, please read the originial post: here

Share the post

How to Create a Configurable .NET Project Template

×

Subscribe to Vedvyas Articles

Get updates delivered right to your inbox!

Thank you for your subscription

×