Scaffold production-ready .NET Clean Architecture microservices directly inside Visual Studio Code with a single command.
Features
Interactive Prompts:
Project Template: Choose between Web API (with controllers), Console App, or Worker Service.
.NET Version: Automatically detects installed .NET SDKs on your system via dotnet --list-sdks (supports .NET 8, 9, 10+).
Database Provider: Select PostgreSQL, SQL Server, or In-Memory database.
App Name: Name your microservice solution/layers.
Naming Form: Choose between Singular or Plural folder and class naming (e.g., Entity/Health vs Entities/Healths).
Clean Architecture Structure:
Creates <AppName>/src/<AppName>/ with inner class libraries:
Domain: Entities, DTOs, and ServiceExtension.
Application: CQRS features (MediatR), FluentValidation validators, and ServiceExtension.
Infrastructure: EF Core AppDbContext under Persistence/, and ServiceExtension.
API / Console / Worker: Main entry point with Program.cs wired up to AddApplication() and AddInfrastructure().
CQRS & MediatR Integration:
Pre-configured health query feature (Get<Entity>Query) merging query request, FluentValidation validator, and handler into a single file with XML summaries.
Developer Experience:
Automatic cleanup of default template artifacts (such as WeatherForecast).
Automatically generates a robust .NET and coverage .gitignore file.
Full XML documentation comments on generated extension methods, data contexts, controllers, and queries.
Requirements
.NET SDK (8.0, 9.0, or 10.0+) installed and available in your system PATH.
Visual Studio Code.
Usage
Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P).
Run Microservice-Csharp: Create Service.
Follow the interactive prompts to configure your microservice.