practical-aspnetcore README

The project's README from github.com/dodyg/practical-aspnetcore. As one markdown file: README.md.

Samples for ASP.NET Core 10.0

Greetings from Cairo, Egypt. You can sponsor this project here.

What's new on ASP.NET Core 11

You can find samples on new features available in ASP.NET Core 11(22) here.

Previous versions

6.0, 5.0, 3.1 LTS, 2.1 LTS

Other Samples

Sections

Section
Authentication 5
Blazor Client Side (Web Assembly) 22 Components, Data Binding
Blazor Server 16 Localization
Blazor Server Side Render 22
Caching 5
Configurations 10
CoreWCF 1
Dependency Injection 4
Diagnostics 5
Endpoint Routing 32
Email 2
Elsa Workflow 17
Exception Handler Middleware 2
Features 11
Generic Hosting 9
gRPC (including grpc-Web) 12
Health Check 6
HTMX 40
IHttpClientFactory 4
IHostedService 2
Logging 6
Localization and Globalization 6
Middleware 14
Mini Apps 2
Minimal API 36 Routing, Parameter Bindings, etc
Minimal Hosting 23
MVC 47 Localization, Routing, Razor Class Library, Tag Helpers, View Component, etc
Output Cache Middleware
Open Telemetry 3
Orchard Core 4
Path String (HttpContext.Request.Path) 1
Polly 1
Problem Details Middleware 3
Razor Pages 10 TempData
RazorSlices 1
Request 15 Form, Cookies, Query String, Headers
Request Timeouts Middleware 6
Response 3
SignalR 1
Security 7
Single File Application 2
Static Files and File Provider 10
System.Text.Json 23
Syndications 3
Testing 1
Unpoly 5
URL Redirect/Rewrite 6
Uri Helper 5
Windows Service 1
Web Sockets 6
Web Utilities 3
Orleans 5
Xml 1
YARP 1

How to run these samples

To run these samples, simply open your command line console, go to each folder and execute dotnet watch run.

Misc (6)

Server-Sent Events (1)

Markdown (2)

Utils (3)

Device Detection (1)

The samples in this section rely on Wangkanai.Detection library.

Image Sharp (1)

All these samples require SixLabors.ImageSharp.Web middleware package. This middleware is an excelent tool to process your day to day image processing need.

Misc

practical-aspnetcore (dodyg/practical-aspnetcore)

Searching Database…

What is this?A very large collection of small, runnable ASP.NET Core sample projects covering versions 2.1 through 11, organized by feature (MVC, Minimal API, Blazor, gRPC, SignalR, etc.) with README explanations for each.
Is this one app or many separate sample projects?It is not a single app — it is dozens of independent mini-projects, each demonstrating one ASP.NET Core feature, grouped into sections such as Minimal API, MVC, Blazor, SignalR, gRPC, and Middleware.
How do I run one of these samples?Open a terminal, go into the folder of the sample you want, and run 'dotnet watch run'; that builds and starts the sample with hot reload.
Do I need the .NET SDK installed?Yes, you need the .NET SDK and 'dotnet' CLI since every sample is a buildable project; a few samples also pull extra NuGet packages, such as Markdig for Markdown rendering or SixLabors.ImageSharp.Web for image resizing.
Is there one guided tutorial, or do I need to dig through folders?There is no single walkthrough — with sections like MVC (47 samples), Minimal API (36), HTMX (40) and multiple Blazor variants, you have to browse the big section table in the README to find the folder you need.
Do I need to already know ASP.NET Core, or is this for beginners?It works best as a reference for people already learning ASP.NET Core — each entry is a short, focused demo rather than a guided course, meant for developers who want working copy-pasteable code for a specific feature.
Which ASP.NET Core versions does it cover?Samples span from the current ASP.NET Core 11 preview down through 10, 9, 8.0, 7.0, 6.0, 5.0, and the older 3.1, 2.2 and 2.1 LTS releases.
Does it include Blazor samples?Yes, there are dedicated sections for Blazor Client Side (WebAssembly), Blazor Server, and Blazor Server-Side Render, covering components, data binding, and localization.
What other related sample repos does the author point to?The README links out to separate repos for ATProtocol/Bluesky samples, the Hydro Framework (a Razor Pages-compatible framework), official .NET Aspire samples, and an ORM Cookbook for data access.
What does the HTMX section cover?It has around 40 samples showing how to wire HTMX-powered pages to ASP.NET Core endpoints and minimal APIs.
Creator
dodyg
Size
45.9 MB
Stars
10.4K
Updated
CommitSep 15
Age
10y
Commits · 90 Days