Aspire.Hosting.PostgreSQL
8.0.2
Prefix Reserved
This version is out of support and is no longer maintained. Please upgrade to the latest version. See our support policy for details: https://aka.ms/dotent/aspire/support
See the version list below for details.
dotnet add package Aspire.Hosting.PostgreSQL --version 8.0.2
NuGet\Install-Package Aspire.Hosting.PostgreSQL -Version 8.0.2
<PackageReference Include="Aspire.Hosting.PostgreSQL" Version="8.0.2" />
<PackageVersion Include="Aspire.Hosting.PostgreSQL" Version="8.0.2" />
<PackageReference Include="Aspire.Hosting.PostgreSQL" />
paket add Aspire.Hosting.PostgreSQL --version 8.0.2
#r "nuget: Aspire.Hosting.PostgreSQL, 8.0.2"
#:package Aspire.Hosting.PostgreSQL@8.0.2
#addin nuget:?package=Aspire.Hosting.PostgreSQL&version=8.0.2
#tool nuget:?package=Aspire.Hosting.PostgreSQL&version=8.0.2
Aspire.Hosting.PostgreSQL library
Provides extension methods and resource definitions for a .NET Aspire AppHost to configure a PostgreSQL resource.
Getting started
Install the package
In your AppHost project, install the .NET Aspire PostgreSQL Hosting library with NuGet:
dotnet add package Aspire.Hosting.PostgreSQL
Usage example
Then, in the Program.cs file of AppHost, add a PostgreSQL resource and consume the connection using the following methods:
var db = builder.AddPostgres("pgsql").AddDatabase("mydb");
var myService = builder.AddProject<Projects.MyService>()
.WithReference(db);
Additional documentation
https://learn.microsoft.com/dotnet/aspire/database/postgresql-component https://learn.microsoft.com/dotnet/aspire/database/postgresql-entity-framework-component
Feedback & contributing
https://github.com/dotnet/aspire
*Postgres, PostgreSQL and the Slonik Logo are trademarks or registered trademarks of the PostgreSQL Community Association of Canada, and used with their permission.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- Aspire.Hosting (>= 8.0.2)
NuGet packages (21)
Showing the top 5 NuGet packages that depend on Aspire.Hosting.PostgreSQL:
| Package | Downloads |
|---|---|
|
Aspire.Hosting.Azure.PostgreSQL
Azure PostgreSql Flexible Server resource types for Aspire. |
|
|
CommunityToolkit.Aspire.Hosting.PostgreSQL.Extensions
An Aspire integration for extending postgres hosting. |
|
|
CommunityToolkit.Aspire.Hosting.Keycloak.Extensions
Aspire hosting extensions for Keycloak (includes PostgreSQL integration). |
|
|
Altemiq.Aspire.Hosting.PostgreSQL.Extensions
PostgreSQL support for .NET Aspire. |
|
|
Altemiq.Aspire.Hosting.PostGIS
PostGIS support for .NET Aspire. |
GitHub repositories (43)
Showing the top 20 popular GitHub repositories that depend on Aspire.Hosting.PostgreSQL:
| Repository | Stars |
|---|---|
|
dotnet/eShop
A reference .NET application implementing an eCommerce site
|
|
|
fullstackhero/dotnet-starter-kit
Production Grade Cloud-Ready .NET 10 Starter Kit (Web API + Blazor Client) with Multitenancy Support, and Clean/Modular Architecture that saves roughly 200+ Development Hours! All Batteries Included.
|
|
|
ChilliCream/graphql-platform
Welcome to the home of the Hot Chocolate GraphQL server for .NET, the Strawberry Shake GraphQL client for .NET and Nitro the awesome Monaco based GraphQL IDE.
|
|
|
thomhurst/TUnit
A modern, fast and flexible .NET testing framework
|
|
|
oskardudycz/EventSourcing.NetCore
Examples and Tutorials of Event Sourcing in .NET
|
|
|
evolutionary-architecture/evolutionary-architecture-by-example
Navigate the complex landscape of .NET software architecture with our step-by-step, story-like guide. Unpack the interplay between modular monoliths, microservices, domain-driven design, and various architectural patterns. Go beyond the one-size-fits-all solutions and understand how to blend these approaches based on your unique needs.
|
|
|
Nethereum/Nethereum
Ethereum .Net cross platform integration library
|
|
|
GZTimeWalker/GZCTF
The GZ::CTF project, an open source CTF platform.
|
|
|
Azure/data-api-builder
Data API builder provides modern REST, GraphQL endpoints and MCP tools to your Azure Databases and on-prem stores.
|
|
|
bitfoundation/bitplatform
Build all of your apps using what you already know and love ❤️
|
|
|
meysamhadeli/booking-microservices
A practical microservices with the latest technologies and architectures like Vertical Slice Architecture, Event Sourcing, CQRS, DDD, gRpc, MongoDB, RabbitMq, Masstransit, and Aspire in .Net 10.
|
|
|
abpframework/abp-samples
Sample solutions built with the ABP Framework
|
|
|
microsoft/aspire-samples
|
|
|
tonybaloney/CSnakes
Embed Python in .NET
|
|
|
colinin/abp-next-admin
这是基于vue-vben-admin 模板适用于abp vNext的前端管理项目
|
|
|
mehdihadeli/food-delivery-microservices
🍔 A practical and cloud-native food delivery microservices, built with .Net Aspire, .Net 9, MassTransit, Domain-Driven Design, CQRS, Vertical Slice Architecture, Event-Driven Architecture, and the latest technologies.
|
|
|
cmu-sei/GHOSTS
GHOSTS (General Human-Oriented Synthetic Teammates and Systems) is a realistic user simulation framework for cyber experimentation, simulation, training, and exercise
|
|
|
NikiforovAll/keycloak-authorization-services-dotnet
Authentication and Authorization with Keycloak and ASP.NET Core 🔐
|
|
|
CommunityToolkit/Aspire
A community project with additional components and extensions for Aspire
|
|
|
meysamhadeli/booking-modular-monolith
A practical Modular Monolith architecture with the latest technologies and architecture like Vertical Slice Architecture, Event Driven Architecture, CQRS, DDD, gRpc, Masstransit, and Aspire in .Net 10.
|
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 13.3.2 | 0 | 5/14/2026 | |
| 13.3.1 | 3,497 | 5/12/2026 | |
| 13.3.0 | 30,801 | 5/7/2026 | |
| 13.2.4 | 110,335 | 4/24/2026 | |
| 13.2.3 | 33,973 | 4/21/2026 | |
| 13.2.2 | 126,961 | 4/8/2026 | |
| 13.2.1 | 84,485 | 3/31/2026 | |
| 13.2.0 | 160,388 | 3/23/2026 | |
| 13.1.3 | 51,849 | 3/19/2026 | |
| 13.1.2 | 254,194 | 2/26/2026 | |
| 13.1.1 | 163,443 | 2/11/2026 | |
| 13.1.0 | 588,860 | 12/17/2025 | |
| 13.0.2 | 112,153 | 12/4/2025 | |
| 13.0.1 | 59,861 | 11/26/2025 | |
| 13.0.0 | 144,340 | 11/11/2025 | |
| 9.5.2 | 321,661 | 10/23/2025 | |
| 9.5.1 | 136,539 | 10/3/2025 | |
| 9.5.0 | 66,554 | 9/25/2025 | |
| 9.4.2 | 124,918 | 9/2/2025 | |
| 8.0.2 | 17,482 | 6/28/2024 |