The ASP.NET Core skill gives Codex a structured, reference-backed approach to building and maintaining .NET web applications. Instead of relying on stale patterns or guessing at framework conventions, Codex confirms the target SDK and app model first, then loads only the focused reference files that match the task—whether that’s wiring up a new Blazor Web App, adding a SignalR hub to an existing MVC site, securing endpoints with ASP.NET Core Identity, or migrating from an olderDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/openai/skills/llms.txt
Use this file to discover all available pages before exploring further.
Startup-based host. Every generated solution stays close to official dotnet new templates and the conventions already present in the codebase.
Installing
What This Skill Enables
App Model Selection
Choose the right ASP.NET Core model — Blazor, Razor Pages, MVC, Minimal
APIs, controller-based Web API — and scaffold from the correct template.
Host & Pipeline
Structure
Program.cs, configure services, compose middleware, set up
routing, logging, and static assets correctly.UI with Blazor, MVC & Razor Pages
Build server-rendered and interactive UI with the right render mode,
component, handler, and view conventions.
APIs: Minimal & Controller-based
Build HTTP APIs with validation, response patterns, OpenAPI, and
content negotiation.
Data, State & Services
Use EF Core,
DbContext, IHttpClientFactory, options patterns, session,
and app state correctly.Security & Identity
Apply authentication, authorization, ASP.NET Core Identity, secrets
management, CORS, CSRF, and HTTPS guidance.
Real-time, gRPC & Background Work
Add SignalR hubs, gRPC services, and
IHostedService / Worker Service
background tasks.Testing & Operations
Write integration tests, configure health checks, add rate limiting, output
caching, and prepare for deployment.
Trigger Conditions
Codex activates this skill when the task involves:- Building or scaffolding a new Blazor Web App, Razor Pages site, MVC app, or Web API
- Adding Minimal API endpoints or controller-based API routes
- Configuring the request pipeline, DI container, or middleware in
Program.cs - Implementing SignalR real-time features or gRPC services
- Applying authentication, authorization, or Identity
- Using EF Core, sessions, caching, or background services
- Writing integration or end-to-end tests for an ASP.NET Core app
- Upgrading between .NET major versions or migrating from legacy
Startuppatterns
Stack Selection
For new apps or major refactors, Codex opensreferences/stack-selection.md first to confirm the right application model:
| Model | Best For |
|---|---|
| Blazor Web App | Full-stack .NET UI with SSR and optional interactivity |
| Razor Pages | Page-focused CRUD, forms, dashboards, line-of-business apps |
| MVC | Large server-rendered apps with controller/view separation and filters |
| Minimal APIs | Focused HTTP APIs, lightweight backends, small surface areas |
| Controller-based Web API | APIs needing [ApiController], content negotiation, and mature controller conventions |
| SignalR | Server push, live updates, chat, and collaborative UI (added to an existing host) |
| gRPC | Service-to-service or streaming RPC over HTTP/2 |
Default Version
Codex targets the latest stable ASP.NET Core and .NET for new work. As of early 2026 that means.NET 10 / ASP.NET Core 10. Treat ASP.NET Core 11 as preview unless the user explicitly requests preview features. If the repository already targets net8.0 or net9.0, stay within that target unless the task is an explicit upgrade.
Template Short Names
dotnet new list if your environment differs.
Reference Categories
Codex loads the smallest set of references that fit the task. The full reference library covers:Stack Selection
Choose the right application model and template for a new app or major
refactor —
references/stack-selection.mdProgram & Pipeline
Structure
Program.cs, DI registration, middleware composition, routing,
configuration, logging, and static assets —
references/program-and-pipeline.mdUI: Blazor
Blazor Web Apps, render modes, components, forms, and JS interop —
references/ui-blazor.mdUI: Razor Pages
Page-focused server-rendered apps with handlers and model binding —
references/ui-razor-pages.mdAPIs: Minimal & Controllers
HTTP APIs, validation, and response patterns —
references/apis-minimal-and-controllers.mdData, State & Services
EF Core,
DbContext, options, IHttpClientFactory, session, and app state —
references/data-state-and-services.mdSecurity & Identity
Authentication, authorization, Identity, secrets, CORS, CSRF, and HTTPS —
references/security-and-identity.mdReal-time, gRPC & Background Work
SignalR, gRPC, and hosted services —
references/realtime-grpc-and-background-work.mdTesting, Performance & Operations
Integration tests, caching, compression, health checks, rate limiting,
and deployment —
references/testing-performance-and-operations.mdDefault Operating Assumptions
- Use
WebApplicationBuilderandWebApplication. Avoid the legacyStartup/WebHostpattern unless the codebase already uses it or the task is a migration. - Prefer built-in DI, options, logging,
ProblemDetails, OpenAPI, health checks, rate limiting, output caching, and Identity before adding third-party infrastructure. - Keep feature slices cohesive: page, component, endpoint, controller, validation, service, data access, and tests should be easy to trace together.
- Respect the existing app model. Do not rewrite Razor Pages to MVC or controller endpoints to Minimal APIs without a clear reason.
- When generating new code, start from the correct
dotnet newtemplate and keep the generated structure recognisable. - When a task mentions “latest”, verify the feature on Microsoft Learn or the ASP.NET Core docs repo before relying on memory.