Learn Minimal APIs from start to finish. Perfect for beginners.

.NET tutorials

Use ASP.NET Core feature management to toggle flags on & off
Use ASP.NET Core feature management to toggle flags on & off

ASP.NET Core's feature management allows you to toggle feature flags on and off by specifying them in appsettings and writing filters.

Add a SignalR hub to ASP.NET Core & connect using JavaScript
Add a SignalR hub to ASP.NET Core & connect using JavaScript

Learn how to add a SignalR hub to an ASP.NET Core app, connect from JavaScript, and send and receive real-time messages between client and server.

Do you use IConfiguration, IOptions or IOptionsSnapshot?
Do you use IConfiguration, IOptions or IOptionsSnapshot?

Is either IConfiguration, IOptions or IOptionsSnapshot the best way to inject configuration values from appsettings.json to an ASP.NET Core Web API?

How to use VS Code to develop and build a .NET application
How to use VS Code to develop and build a .NET application

How to develop a .NET application with VS Code, including how to install the .NET SDK, adding extensions and how to build and run an app.

How to find a client's geolocation in .NET with IP lookup
How to find a client's geolocation in .NET with IP lookup

Add geolocation to your .NET project by doing an IP address lookup so you know the country where your client's are located.

Add Stripe to your .NET project to accept online payments
Add Stripe to your .NET project to accept online payments

Add Stripe to your ASP.NET Core project to take online payments with this checkout example that uses the Stripe.net NuGet package.

C# try, catch and finally: When does each block run?
C# try, catch and finally: When does each block run?

Learn exactly when the try, catch and finally blocks execute in C#, including edge cases in console apps and ASP.NET Core when exceptions are thrown.

How to use C# async/await for API calls & to stop blocking
How to use C# async/await for API calls & to stop blocking

Learn how to make an async method in C# that does an await on an ASP.NET Core Web API request and returns a Task type.

How to use HttpClient correctly to avoid socket exceptions
How to use HttpClient correctly to avoid socket exceptions

Learn the best practices on how to use HttpClient correctly and avoid socket exceptions by using HttpClientFactory in an ASP.NET Core Web API.

How to use Moq for mocking objects with xUnit and .NET
How to use Moq for mocking objects with xUnit and .NET

Learn how to use Moq for mocking objects like classes and interfaces in an xUnit test project when writing unit tests for .NET and C# projects.