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 endpointO24OpenAPI.{ServiceName}.Domain— domain entities and repository interfacesO24OpenAPI.{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
- Install the extension and restart Visual Studio.
- New project: search O24 OpenAPI Service.
- New item: right-click a feature folder → Add → New Item → search O24.
If templates do not appear after upgrade, run:
devenv /installvstemplates