Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
P

practical-aspnetcore

> 编程语言
Open source

Practical samples of ASP.NET Core 11, 10, 9, 8.0, 7.0, 6.0, 5.0, 3.1, 2.2, and 2.1,projects you can use. Readme contains explanations on all projects.

10.4K stars0 likes3 views
WebsiteGitHub

About

Practical samples of ASP.NET Core 11, 10, 9, 8.0, 7.0, 6.0, 5.0, 3.1, 2.2, and 2.1,projects you can use. Readme contains explanations on all projects.

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

  • For ATProtocol (the underlying open protocol for Bluesky) related samples, you can find them here.
  • For Hydro Framework (Razor Pages compatible), you can find them here(8).
  • Official .NET Aspire samples.
  • For Data Access samples, go to the excellent ORM Cookbook.
  • .NET team also has a sample repository.

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)

  • Application Environment

    This sample shows how to obtain application environment information (target framework, etc).

  • Show Connection info

    Enumerate the connection information of a HTTP request.

  • Password Hasher server

    Give it a string and it will generate a secure hash for you, e.g. localhost:5000?password=mypassword.

  • Version info

    Show various version info of the framework your system is running on.

  • IApplicationLifetime

    Responds to application startup and shutdown.

    We are using IApplicationLifetime that trigger events during application startup and shutdown.

  • Short Circuit

    Use MapShortCircuit or .ShortCircuit() to efficiently respond to a request without going through a middleware pipeline run.

Server-Sent Events (1)

  • Forever Server

    This server will send a 'hello world' greeting forever using .NET 10 built-in SSE support.

Markdown (2)

  • Markdown server

    Serve markdown file as html file. You will see how you can create useful app using a few basic facilities in aspnetcore.

    We take "Markdig" as dependency.

  • Markdown server - implemented as middleware component

    Serve markdown file as html file. It has the same exact functionality as Markdown server but implemented using middleware component.

    We take "Markdig" as dependency.

Utils (3)

  • Status Codes

    Here we contrast between

Issues· 177 open

View all issuesOpen on GitHub
  • #322

    Add a sample on how to create a background task using OrchardCore module

    Updated Aug 25, 2025
  • #401

    2025

    Updated Jul 29, 2025
  • #407

    Add HTMX SSE sample

    Updated Jul 22, 2025
  • #406

    Add Example for FluentValidation integration for Blazor

    Updated Jul 22, 2025
  • #405

    Add sample for WASM Time

    Updated Jul 14, 2025
  • #403

    Add sample for Hyperlight WASM

    Updated Mar 27, 2025
  • #62

    Authentication

    Updated Jul 10, 2024
  • #390

    Create a sample to use NATS Object Store functionality to serve files

    Updated Apr 18, 2024
  • #358

    Write samples for FastEndpoints

    Updated Jan 28, 2024
  • #377

    Write samples on how to use web worker using SpawnDev.BlazorJs

    blazorUpdated Oct 3, 2023

> Tags

C#asp-net-coreaspnet-coreaspnetcoredotnet-core

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 29, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言