Skip to content
| Marketplace
Sign in
Visual Studio>Templates>O24 OpenAPI Templates
O24 OpenAPI Templates

O24 OpenAPI Templates

Linh Nguyen Quoc

|
4 installs
| (0) | Free
Project and item templates for O24 OpenAPI services, including CQRS command/query and domain aggregate scaffolds.
Download

O24 OpenAPI Templates

Visual Studio extension that scaffolds O24 OpenAPI microservices with the standard API / Domain / Infrastructure layout and CQRS command/query item templates.

Project template: O24 OpenAPI Service

Create a new solution from File → New → Project and search for O24 OpenAPI Service.

Generates three projects:

  • O24OpenAPI.{ServiceName}.API — ASP.NET Core API, MediatR, validation, sample endpoint
  • O24OpenAPI.{ServiceName}.Domain — domain entities and repository interfaces
  • O24OpenAPI.{ServiceName}.Infrastructure — EF Core, repositories, DI extensions

The wizard lets you choose optional scaffolding:

  • Directory.Build.props / Directory.Packages.props
  • Sample domain, repository, and entity configuration
  • Sample CQRS feature with optional workflow step
  • gRPC registration and config files

Uses O24OpenAPI NuGet packages and references shared monorepo projects O24OpenAPI.APIContracts and O24OpenAPI.GrpcContracts when created under the O24OpenAPI\ folder.

Item templates: CQRS Command & Query

Right-click a folder in an API project (e.g. Application/Features/Bills) → Add → New Item → search O24.

Template Output
O24 CQRS Command {Name}Command, {Name}Response, {Name}Handler
O24 CQRS Query {Name}Query, {Name}Response, {Name}Handler

Enter a feature name such as CreateBill (without the Command/Query suffix). Optionally set a workflow step code; the handler will get [WorkflowStep("...")] on HandleAsync.

Requirements

  • Visual Studio 2022 (17.x)
  • ASP.NET and web development workload (for item templates under ASP.NET Core)

Getting started

  1. Install the extension and restart Visual Studio.
  2. New project: search O24 OpenAPI Service.
  3. New item: right-click a feature folder → Add → New Item → search O24.

If templates do not appear after upgrade, run:

devenv /installvstemplates

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft