StackedDeck.Project.Templates
0.0.5
dotnet new install StackedDeck.Project.Templates::0.0.5
♠️ Stacked Deck Project Templates
A curated collection of C#/.NET project templates, that I've composed for personal, for rapid, batteries-included, performant enterprise solutions for green-field projects. Focusing on sensible defaults, new technologies, enforcable conventions and low-friction experience OOB.
Their concept is to give advantage, akin to a "stacked card deck".
- Vasil Kotsev
🧰 Installation
dotnet new install StackedDeck.Project.Templates
👩🔬 Usage
# List the available templates
dotnet new list StackedDeck
# Choose a template & view the required parameters
dotnet new sd-webapi -h
# Update the template
dotnet new update
🧩 Available templates
🌐 Stacked Deck Web API (C#)
Sets up a solution with a containerized ASP.NET Core Web API service.
Comes preconfigured with all the necessary bells & whistles to create
containerized, enterprise-ready, maintainable and performant services
with sensible defaults. For detailed information, see the section below.
✨ Features
- Pre-configured
Dockerfilewith- Targeting
ASP.NET Core Runtime 10 alpinelinux based images- Pinned package versions
- Health checks
- Targeting
- Pre-configured
NUKEbuild system with common targets- Restoring
- Compiling
- Publishing
- Testing
- Building
OCIcompatible images
- Semantic versioning with GitVersion
- Roslyn Analyzers
Roslynator.AnalyzersSonarAnalyzer.CSharp
- Structured logging infrastructure with
Serilog - Coding conventions (
.editorconfig) - Multiple API styles with full API versioning support
ControllersMinimal API (default)FastEndpoints
OpenAPI v3specification generationScalarAPI client for interacting with theOpenAPIspecification- Optional support for
Azure App Configuration - Optional support for
Azure Managed Identityauthentication - Health checks endpoint with liveness probe and system metadata
- Strongly typed configurations via dedicated environment-specific
appsettings.jsondocuments - Shared project properties via
Directory.Build.props - Automatic dependency version management with
Dependabot - Optional pre-configured
CIpipeline withGitHub Actions - AI Agent Skills for NUKE build system and git operations
OpenTelemetryobservability infrastructure with multiple collection modesPrometheusscraping endpoint for metrics-only collectionOTEL Collectorfor distributed traces and metrics viaOTLP
- Infrastructure as Code (
IaC) directory structure- Local development observability stack (
Docker Compose) Prometheus,Grafana,Tempo, andOTEL Collectorfor local development
- Local development observability stack (
-
net10.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
✨ Features
- 🏗️ Introduce OTEL infrastructure & configurable telemetry collection modes (d28112d)
🚀 Improvements
- ⬆️ Bump Scalar.AspNetCore to v2.12.36 (58f4843, b05eecc)
- ⬆️ Bump SonarAnalyzer.CSharp from 10.18.0.131500 to 10.19.0.132793 (57a06ea)