Altavec.Aspire.Hosting.PostgreSQL.Extensions 9.3.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package Altavec.Aspire.Hosting.PostgreSQL.Extensions --version 9.3.1
                    
NuGet\Install-Package Altavec.Aspire.Hosting.PostgreSQL.Extensions -Version 9.3.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Altavec.Aspire.Hosting.PostgreSQL.Extensions" Version="9.3.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Altavec.Aspire.Hosting.PostgreSQL.Extensions" Version="9.3.1" />
                    
Directory.Packages.props
<PackageReference Include="Altavec.Aspire.Hosting.PostgreSQL.Extensions" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Altavec.Aspire.Hosting.PostgreSQL.Extensions --version 9.3.1
                    
#r "nuget: Altavec.Aspire.Hosting.PostgreSQL.Extensions, 9.3.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=Altavec.Aspire.Hosting.PostgreSQL.Extensions&version=9.3.1
                    
Install Altavec.Aspire.Hosting.PostgreSQL.Extensions as a Cake Addin
#tool nuget:?package=Altavec.Aspire.Hosting.PostgreSQL.Extensions&version=9.3.1
                    
Install Altavec.Aspire.Hosting.PostgreSQL.Extensions as a Cake Tool

Altavec.Aspire.Hosting.PostgreSQL.Extensions library

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

Getting started

Install the package

In your AppHost project, install the Altavec .NET Aspire PostgreSQL Hosting library with NuGet:

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

Usage examples

Adding Trusted Language Extensions for PostgreSQL (pg_tle)

In the AppHost.cs file of AppHost, configure a PostgreSQL resource with TLE using the following methods:

var db = builder
    .AddPostgres("pgsql")
    .WithTle()
    .AddDatabase("mydb");

var myService = builder.AddProject<Projects.MyService>()
                       .WithReference(db);
Adding a TLE extension to a database

This can compile an example extension from the pg_tle repository for use in the database.

The available extensions are

In the AppHost.cs file of AppHost, configure a PostgreSQL database resource to use a TLE extension using the following method:

_ = db.WithTleExtension("uuid_v7");

Adding PL/Rust

In the AppHost.cs file of AppHost, configure a PostgreSQL resource with PL/Rust using the following methods:

var db = builder
    .AddPostgres("pgsql")
    .WithPlRust()
    .AddDatabase("mydb");

var myService = builder.AddProject<Projects.MyService>()
                       .WithReference(db);

Adding PL/.NET

In the AppHost.cs file of AppHost, configure a PostgreSQL resource with PL/.NET using the following methods:

var db = builder
    .AddPostgres("pgsql")
    .WithPlDotnet()
    .AddDatabase("mydb");

var myService = builder.AddProject<Projects.MyService>()
                       .WithReference(db);

*Postgres, PostgreSQL and the Slonik Logo are trademarks or registered trademarks of the PostgreSQL Community Association of Canada, and used with their permission.

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Altavec.Aspire.Hosting.PostgreSQL.Extensions:

Package Downloads
Altavec.Aspire.Hosting.PostGIS

PostGIS support for .NET Aspire.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
9.3.1.1 32 6/16/2025
9.3.1 301 6/11/2025
9.3.0 149 6/2/2025