Skip to content

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

License

Notifications You must be signed in to change notification settings

wanaxe/practical-aspnetcore

Repository files navigation

Samples for ASP.NET Core 3.1 (WIP)

This branch in a work in progress. I am converting over 200 samples from previous versions to 3.1. If you are starting on ASP.NET Core, you can start from the samples from the master branch.

Additional Sections

Continue to scroll down to find materials for absolute beginners to ASP.NET Core.

Sections
ASP.NET Core 3.0
Blazor Client Side (Web Assembly)
Blazor Server Side
Diagnostics
Endpoint Routing
Health Check
IHttpClientFactory
Generic Hosting
gRPC
MVC - Localization
MVC - Routing
MVC - Tag Helpers
MVC - View Component
Static Files and File Provider
System.Text.Json
URL Redirect/Rewrite
Syndications
Web Sockets

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

  • Hello World

    This is the simplest ASP.NET Core application you can create. An ASP.NET Core application includes a super fast web server called Kestrel. In a few lines of code we set up the web server and a simple app.

    In this sample we use a Startup class to configure your application. This is the canonical way of doing thing.

  • Hello World - 2

    This is the equivalent of the previous Hello World sample except that in this case we don't use a Startup class. This way of configuring things is not common.

Server-Sent Events (1)

  • Forever Server

    This server will send a 'hello world' greeting forever.

About

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

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 75.1%
  • HTML 20.1%
  • Batchfile 4.7%
  • Dockerfile 0.1%