Skip to main content
net8.0net9.0

A .NET Aspire integration for extending postgres hosting.

Published
Mar 27, 2025
1y ago
Total Downloads
118.5K
118,532

Install

dotnet add package CommunityToolkit.Aspire.Hosting.PostgreSQL.Extensions --version 9.3.1-beta.249
ProductVersions
.NET
net8.0net9.0

README

CommunityToolkit.Aspire.Hosting.PostgreSQL.Extensions library

This integration contains extensions for the PostgreSQL hosting package for .NET Aspire.

The integration provides support for running DbGate to interact with the PostgreSQL database.

Getting Started

Install the package

In your AppHost project, install the package using the following command:

dotnet add package CommunityToolkit.Aspire.Hosting.PostgreSQL.Extensions

Example usage

Then, in the Program.cs file of AppHost, define an Postgres resource, then call AddPostgres:

var postgres = builder.AddPostgres("postgres")
    .WithDbGate();

Additional Information

https://learn.microsoft.com/dotnet/aspire/community-toolkit/hosting-postgres-extensions

Feedback & contributing

https://github.com/CommunityToolkit/Aspire

Changes from Previous Version

No structural changes between v9.3.1-beta.248 and v9.3.1-beta.249.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

This version is marked prerelease. Validate its API and upgrade path before production use.Compatibility metadata lists 2 target frameworks; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.