10-Day .Net Aspire Challenge: Day 3— Add PGSQL Component

Step-by-step guide on how to use the .Net Aspire PGSQL component in Visual Studio.

Published in
3 min readAug 30, 2024

--

Introduction

.Net Aspire framework is used to develop cloud and production-ready distributed applications. It consists of components to handle cloud-native concerns such as Redis, Postgres etc.

Prerequisites

10 Day .Net Aspire Challenge

10 stories

Objectives

Learn how to create a starter project using .Net Aspire with the PGSQL EF Core component.

Github Sample: The solution structure is divided into the following projects

  • DotnetAspireChallenge.ApiService
  • DotnetAspireChallenge.AppHost
  • DotnetAspireChallenge.ServiceDefaults

--

--