Starting with .NET Aspire
.NET Aspire is a new .NET technology offering tools and libraries that help create, debug, and deploy .NET solutions built using microservices. With all the chapters of this book, we’ll take advantage of .NET Aspire.
Note
In this chapter, you’ll get a core understanding of how .NET Aspire works. In all the other chapters, we’ll make use of .NET Aspire and get into the details.
You can install it using the .NET Command Line Interface (CLI) or using Visual Studio 2022. The first version of .NET Aspire is based on .NET 8, thus at least .NET 8 is required to use .NET Aspire.
.NET Aspire requires .NET 8, and can be installed by installing a .NET workload:
dotnet workload install aspire
To see the workloads installed, and the version of .NET Aspire, use the following:
dotnet workload list
If you use Visual Studio, use the Visual Studio Installer, and select the .NET Aspire SDK component to install .NET Aspire.
.NET...