GitHub - dodyg/practical-aspnetcore at 3.1-LTS (original) (raw)

301 Samples for ASP.NET Core 3.1.300

People of Beirut needs our help. Please support them.

Welcome

The goal of this project is to enable .NET programmers to learn the new ASP.NET Core stack from the ground up directly from code. There is so much power in the underlying ASP.NET Core stack. Don't miss them!

I highly recommend using Visual Studio Code to play around with these samples but it is not required. You can use Visual Studio 2019 as well.

Note: If you encounter problem with downloading packages or Nuget, try the following command nuget.exe locals -clear all.

For samples for older version of ASP.NET Core (e.g 2.1), you can find them here.

If you are studying ASP.NET Core, I am lurking on this Gitter Channel. Otherwise just create a new issue and I will try to answer the best I can.

Hi Nuget visitors, if you have problem finding the sample you are looking for, please use the github search functionality or otherwise file a case. I will be happy to point you to the right direction.

Sections

Section
Blazor Client Side (Web Assembly) (Components, Data Binding) (20) Middleware (14)
Blazor Server Side (Localization) (15) MVC (Localization, Routing, Razor Class Library, Tag Helpers, View Component, etc) (46)
Caching (5) Razor Pages (9)
Configurations (7) Orchard Core (4)
Dependency Injection (3) Request (Form, Cookies, Query String, Headers) (14)
Diagnostics (6) Response (4)
Endpoint Routing (31) Static Files and File Provider (8)
Features (10) System.Text.Json (10)
Health Check (6) Startup (12)
IHttpClientFactory (4) URL Redirect/Rewrite (6)
IHostedService (1) Syndications (3)
Generic Hosting (9) Uri Helper (5)
gRPC (including grpc-Web) (12) Web Sockets (5)
Logging (2) Web Utilities (3)
Localization and Globalization (6) Azure Functions (2)
Single File Application - C# 9, ASP.NET Core 5 (1) For Data Access samples, go to the excellent ORM Cookbook.
138 144

How to run these samples

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

Foundation ASP.NET Core 3.1 Samples

Basic (5)

Misc (8)

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.

Azure Functions (2)

These samples show you how to achieve different scenarios without out-of-the-box templates, such as referencing an Entity Framework Core database context in the function. See details here!

Misc