Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>MicroserviceNew to Visual Studio Code? Get it now.
Microservice

Microservice

sathish

|
3 installs
| (2) | Free
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Microservice-Csharp VS Code Extension

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

  1. Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P).
  2. Run Microservice-Csharp: Create Service.
  3. Follow the interactive prompts to configure your microservice.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft