.NET Template Authoring

•
3.1k
•

Streamlines the creation, validation, and packaging of custom .NET CLI project templates from existing C# codebases.

The .NET Template Authoring skill empowers developers to transform existing projects into reusable 'dotnet new' templates by automating the generation of .template.config/template.json files. It provides deep validation against schema standards, helps configure complex logic like conditional content and post-actions, and ensures templates follow best practices for identity naming and discoverability. Whether you are standardizing internal team architectures or preparing templates for public NuGet distribution, this skill identifies common pitfalls and guides you through the entire authoring workflow from bootstrapping to local testing.

Key Features

01Configuration guidance for post-actions and environment constraints
023,148 GitHub stars
03Automated template.json bootstrapping from existing project files
04Comprehensive schema validation for parameters, identities, and tags
05Support for conditional content using preprocessor directives
06Structural setup for packaging templates as NuGet distribution units

Use Cases

01Converting a reference architecture into a reusable 'dotnet new' project template
02Standardizing project boilerplate across a development organization
03Fixing validation errors and schema compliance issues in existing template files