.NET tutorials

How to create the Connect 4 game in Blazor WebAssembly in one hour!

How to create the Connect 4 game in Blazor WebAssembly in one hour!

Creating the Connect 4 game using the .NET Blazor WebAssembly framework. The ASP.NET Core application uses C# & Razor components.
How to create the Tic-Tac-Toe game in Blazor WebAssembly in one hour!

How to create the Tic-Tac-Toe game in Blazor WebAssembly in one hour!

Creating Tic-Tac-Toe (Noughts & Crosses) using the Blazor WebAssembly framework. Example coded using C# & Razor components.
Why is the ASP.NET Core FromBody not working or returning null?

Why is the ASP.NET Core FromBody not working or returning null?

How to use ASP.NET Core FromBody & FromQuery in an API. Why FromBody is returning null & how to fix a 415 unsupported media type error.
How to create a free PDF document using HTML & CSS in ASP.NET Core

How to create a free PDF document using HTML & CSS in ASP.NET Core

Learn how to create a PDF document in ASP.NET Core using HTML and CSS. We also create a PDF document, and render a website.
How to read the appsettings.json configuration file in ASP.NET Core

How to read the appsettings.json configuration file in ASP.NET Core

Read the appsettings.json configuration into ASP.NET Core MVC. Parse the settings into a strongly typed class using the options pattern.
How to implement dependency injection in ASP.NET Core

How to implement dependency injection in ASP.NET Core

Implement a singleton, scoped and transient service using ASP.NET Core's dependency injection and find out common errors in DI.
How to install an ASP.NET Core .NET 5 app on Ubuntu 20.04

How to install an ASP.NET Core .NET 5 app on Ubuntu 20.04

Run an ASP.NET Core Web API in .NET 5 on Ubuntu 20.04. Using A2 Hosting to purchase a Linux VPS. Run on Kestrel and proxy to Apache.
Blazor Server vs. Blazor WebAssembly: Four ways in which they differ

Blazor Server vs. Blazor WebAssembly: Four ways in which they differ

Blazor Server versus WebAssembly (Wasm). Four ways on how the Blazor hosting models differ, including performance & offline support.
Four useful tips when using ASP.NET Core's TestServer in xUnit: TestServer - Part 2

Four useful tips when using ASP.NET Core's TestServer in xUnit: TestServer - Part 2

Learn to change the DbContext lifetime, fire a POST request & add a Authorization header with ASP.NET Core's TestServer in xUnit.
Use ASP.NET Core's TestServer in xUnit to test Web API endpoints: TestServer - Part 1

Use ASP.NET Core's TestServer in xUnit to test Web API endpoints: TestServer - Part 1

Configure an instance of WebHostBuilder and use it in ASP.NET Core's TestServer to test Web API endpoints in an xUnit test project.