practical-aspnetcore
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.
A large collection of small, runnable C# code examples for ASP.NET Core, covering routing, authentication, caching, SignalR, and more across versions 2.1 through 10.
This repository is a large collection of small, working code examples for ASP.NET Core, which is Microsoft's framework for building web applications and APIs using the C# programming language. Each example is a self-contained project that demonstrates one specific thing, such as how to handle user logins, how to send emails, how to cache pages for faster loading, or how to set up routing so that web addresses map to the right parts of your application.
The collection covers many versions of ASP.NET Core, from version 2.1 up through version 10, and older versions are kept on separate branches so you can look up how things worked in a previous release. The README itself serves as the primary reference, listing every section and how many examples it contains. Sections range from basics like reading form submissions and query strings, to more advanced topics like building real-time features with SignalR, connecting to databases, and integrating workflow engines.
The intended audience is developers who are already writing C# and want to see a concrete, runnable demonstration of a specific ASP.NET Core feature rather than reading through long documentation pages. Each project is meant to compile and run, so you can open it, run it, and immediately see the behavior described.
The repository is maintained by a single author based in Cairo, Egypt, who also accepts sponsorship through GitHub Sponsors. The project is actively updated to track new ASP.NET Core releases, with dedicated sections for the latest features in version 9 and version 10. It also links out to related example repositories for other frameworks and libraries in the .NET ecosystem.
Where it fits
- Look up a specific ASP.NET Core feature like caching or JWT auth and run a minimal working example immediately.
- Find a concrete SignalR demo for real-time notifications in your ASP.NET Core web app.
- Compare how a specific behavior changed between ASP.NET Core versions by browsing examples across branches.