# Aspnet Core

> ASP.NET Core cross-platform .NET framework with Blazor support. Use for C# web apps.

- Skill: `g1joshi/aspnet-core` (Agent Skill)
- Install (CLI): `npx skillmds@latest add g1joshi/aspnet-core`
- Raw SKILL.md: https://api.skillmd.com/api/skills/g1joshi/aspnet-core/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: G1Joshi (https://skillmd.com/u/g1joshi)
- Updated: 2026-09-10
- Page: https://skillmd.com/skills/g1joshi/aspnet-core

---


# 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/)

