# Aspnet Core

> ASP.NET Core cross-platform .NET framework with Blazor support. Use for C# web apps. Use when this capability is needed.

- Skill: `tomevault-io/aspnet-core-2` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/aspnet-core-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/aspnet-core-2/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/aspnet-core-2

---


# ASP.NET Core

Cross-platform, high-performance framework for building modern web apps.

## When to Use

- High-performance APIs (one of the fastest benchmarks)
- Enterprise applications
- Microservices
- Real-time apps (SignalR)

## Quick Start

```csharp
var builder = WebApplication.CreateBuilder(args);
var app = builder.Build();

app.MapGet("/", () => "Hello World!");

app.Run();
```

## Core Concepts

### Middleware Pipeline

Request processing pipeline composed of delegates.

### Dependency Injection

Built-in DI container, a core citizen of the framework.

### Kestrel

Cross-platform web server for ASP.NET Core.

## Best Practices

**Do**:

- Use the built-in DI
- Use asynchronous controllers (`async Task<IActionResult>`)
- Use Environment Variables for config settings

**Don't**:

- Block asynchronous code (`.Result` or `.Wait()`)
- Store large objects in Session state

## References

- [ASP.NET Core Docs](https://learn.microsoft.com/en-us/aspnet/core/)

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/g1joshi) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-13 -->

