.NET Aspire Tutorials

Adding .NET Aspire to your existing .NET apps

.NET Aspire can really simplify local development for your existing apps, large or small. In this post, we'll look at how easy it is to make your current solutions better with just a few lines of code.

How to Create a Project with .NET, OpenTelemetry, and Docker Using .NET Aspire for Logs

Hello, devs! Today, we’re embarking on an exciting journey: creating a simple project using .NET 8, setting up OpenTelemetry to instrument our ASP.NET Core and HTTP, and finally, deploying our application in a Docker environment. Additionally, we’ll use .NET Aspire to monitor our application’s logs. This tutorial is ideal for both beginners and experienced developers looking to explore new tools and practices.

Secure your PDFs in a Container with .NET Aspire

Let's build on our previous video and use a new product from IronSoftware called IronSecureDoc that allows you to redact, certify, and even password protect your PDFs with a container hosted service. We'll use a similar technique to what we did last time to add this new product to our .NET Aspire system and learn about protecting our PDF documents.

Simplifying Remote Docker Container Connections in .NET Aspire with SSH.Net

When using remote docker host, we can also do port forwarding via SSH which simplifies the setup and requires less code compared to overriding connection strings for applications. When we are running the containers locally, we don't do the port forwarding and let Aspire Endpoints do the job as intended.

Generate PDFs with a Container using .NET Aspire

Learn how to generate PDF documents using IronPdf in a Docker container with .NET Aspire. Discover step-by-step instructions creating high-quality PDFs programmatically. We'll configure our .NET Aspire solution to host the IronPdfEngine with a container and delegate generation of the PDF to that service. Additionally, we'll wrap out PDF generation methods in OpenTelemetry Traces and Meters to assist in observing the performance of our website.

Integration-testing .NET Aspire Apps

.NET Aspire doesn’t only allow developers to build distributed orchestrated applications relatively easily compared to other equivalent technologies, but it also makes it easy to write integration tests against these applications.

Immersive APM Showcase - Integration with .NET Aspire

Showcase of how we can add a real-time immersive experience with Immersive APM to an .NET Aspire project.

Building a Custom Reverse Geocoding Resource for .Net Aspire

This post will start with a high level background on reverse geocoding, OpenStreetMap and Nominatim as a locally hosted geocoding and reverse geocoding API. We will then cover how to build an Aspire Resource for Nominatim and go through the building blocks. Initially we will focus on the basics.

Aspire Three Ways to Implement Service Discovery for Non-.NET APIs micro-services

Aspire provides three resource types: Project, Container, and Executable. However, service discovery is only enabled by default for Project resources. Here, we demonstrate Aspire's non-.NET Web API service discovery approach using a Bun web API (similar to Node.js). Three code examples illustrate different methods.

Orchestrate Python apps in .NET Aspire - .NET Aspire

Learn how to integrate Python apps into a .NET Aspire App Host project.