Aspire for new and existing solutions
Now that you’ve reviewed the starter template to get a basic idea of the various parts of Aspire and how they all work together to provide a great local development experience when building distributed cloud-native solutions with .NET, let’s get more realistic and see how you can create new Aspire solutions and how you can add Aspire to existing solutions.
Creating a new Aspire solution
At this point, we have reviewed a complete Aspire solution with common projects and components like a web service and web user interface, alongside a container for Redis. If you have a brand new solution to create, you can use the .NET Aspire Application project template.
Imagine that you need to create a greenfield solution that uses a PostgreSQL database, a SQL Server database, and an ASP.NET Core Web API.
Let’s create an initial Aspire solution for that now:
- Use your preferred code editor to create a new .NET Aspire...