Testcontainers.PostgreSql
                             
                            
                                4.8.0
                            
                        
                            
                                
                                
                                    Prefix Reserved
                                
                            
                    See the version list below for details.
dotnet add package Testcontainers.PostgreSql --version 4.8.0
NuGet\Install-Package Testcontainers.PostgreSql -Version 4.8.0
<PackageReference Include="Testcontainers.PostgreSql" Version="4.8.0" />
<PackageVersion Include="Testcontainers.PostgreSql" Version="4.8.0" />
<PackageReference Include="Testcontainers.PostgreSql" />
paket add Testcontainers.PostgreSql --version 4.8.0
#r "nuget: Testcontainers.PostgreSql, 4.8.0"
#:package Testcontainers.PostgreSql@4.8.0
#addin nuget:?package=Testcontainers.PostgreSql&version=4.8.0
#tool nuget:?package=Testcontainers.PostgreSql&version=4.8.0
Testcontainers
Testcontainers for .NET is a library to support tests with throwaway instances of Docker containers for all compatible .NET Standard versions. The library is built on top of the .NET Docker Remote API and provides a lightweight implementation to support your test environment in all circumstances.

Read the documentation here
License
See LICENSE.
Copyright
Copyright (c) 2019 - 2025 Andre Hofmeister and other authors.
See contributors for all contributors.
Join our Slack Workspace | Testcontainers OSS | Testcontainers Cloud
| Product | Versions Compatible and additional computed target framework versions. | 
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. 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 is compatible. 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. | 
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. | 
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. | 
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. | 
| MonoAndroid | monoandroid was computed. | 
| MonoMac | monomac was computed. | 
| MonoTouch | monotouch was computed. | 
| Tizen | tizen40 was computed. tizen60 was computed. | 
| Xamarin.iOS | xamarinios was computed. | 
| Xamarin.Mac | xamarinmac was computed. | 
| Xamarin.TVOS | xamarintvos was computed. | 
| Xamarin.WatchOS | xamarinwatchos was computed. | 
- 
                                                    .NETStandard 2.0- Testcontainers (>= 4.8.0)
 
- 
                                                    .NETStandard 2.1- Testcontainers (>= 4.8.0)
 
- 
                                                    net8.0- Testcontainers (>= 4.8.0)
 
- 
                                                    net9.0- Testcontainers (>= 4.8.0)
 
NuGet packages (17)
Showing the top 5 NuGet packages that depend on Testcontainers.PostgreSql:
| Package | Downloads | 
|---|---|
| Reo.Core.IntegrationTesting Package Description | |
| EasyDesk.CleanArchitecture.Testing.Integration Utilities for integration testing an application built using the clean architecture packages. | |
| DrifterApps.Seeds.Testing Package Description | |
| ProjectOrigin.TestCommon This library contains helper classes to write tests. | |
| Itmo.Dev.Platform.Testing Package Description | 
GitHub repositories (46)
Showing the top 20 popular GitHub repositories that depend on Testcontainers.PostgreSql:
| Repository | Stars | 
|---|---|
| microsoft/semantic-kernel 
                                                            Integrate cutting-edge LLM technology quickly and easily into your apps
                                                         | |
| elsa-workflows/elsa-core 
                                                            A .NET workflows library
                                                         | |
| dotnet/aspire 
                                                            Aspire is the tool for code-first, extensible, observable dev and deploy.
                                                         | |
| Xabaril/AspNetCore.Diagnostics.HealthChecks 
                                                            Enterprise HealthChecks for ASP.NET Core Diagnostics Package
                                                         | |
| oskardudycz/EventSourcing.NetCore 
                                                            Examples and Tutorials of Event Sourcing in .NET
                                                         | |
| thomhurst/TUnit 
                                                            A modern, fast and flexible .NET testing framework 
                                                         | |
| fluentmigrator/fluentmigrator 
                                                            Fluent migrations framework for .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.
                                                         | |
| Squidex/squidex 
                                                            Headless CMS and Content Managment Hub
                                                         | |
| asynkron/protoactor-dotnet 
                                                            Proto Actor - Ultra fast distributed actors for Go, C# and Java/Kotlin
                                                         | |
| Giorgi/EntityFramework.Exceptions 
                                                            Strongly typed exceptions for Entity Framework Core. Supports SQLServer, PostgreSQL, SQLite, Oracle and  MySql.
                                                         | |
| dotnetcore/AgileConfig 
                                                            基于.NET Core开发的轻量级分布式配置中心 / .NET  Core lightweight configuration server
                                                         | |
| 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 9.
                                                         | |
| IoTSharp/IoTSharp 
                                                            IoTSharp is an open-source IoT platform for data collection, processing, visualization, and device management.
                                                         | |
| 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.
                                                         | |
| artiomchi/FlexLabs.Upsert 
                                                            FlexLabs.Upsert is a library that brings UPSERT functionality to common database providers for Entity Framework in their respective native SQL syntax
                                                         | |
| open-telemetry/opentelemetry-dotnet-contrib 
                                                            This repository contains set of components extending functionality of the OpenTelemetry .NET SDK. Instrumentation libraries, exporters, and other components can find their home here.
                                                         | |
| elastic/apm-agent-dotnet | |
| zarusz/SlimMessageBus 
                                                            Lightweight message bus interface for .NET (pub/sub and request-response) with transport plugins for popular message brokers.
                                                         | |
| yanpitangui/dotnet-api-boilerplate 
                                                            A Dotnet 9.0 WebApi template project. MediatR, Swagger, Mapper, Serilog and more implemented. 
                                                         | 
| Version | Downloads | Last Updated | 
|---|---|---|
| 4.8.1 | 40,196 | 10/22/2025 | 
| 4.8.0 | 28,444 | 10/19/2025 | 
| 4.7.0 | 507,111 | 8/28/2025 | 
| 4.6.0 | 979,093 | 6/13/2025 | 
| 4.5.0 | 126,906 | 6/5/2025 | 
| 4.4.0 | 822,273 | 4/14/2025 | 
| 4.3.0 | 1,201,339 | 2/24/2025 | 
| 4.2.0 | 339,385 | 2/10/2025 | 
| 4.1.0 | 1,013,243 | 12/9/2024 | 
| 4.1.0-beta.12035377103 | 1,325 | 11/26/2024 | 
| 4.1.0-beta.11746011829 | 3,048 | 11/8/2024 | 
| 4.0.0 | 806,953 | 11/1/2024 | 
| 3.10.0 | 1,426,832 | 9/3/2024 | 
| 3.9.0 | 1,404,830 | 6/16/2024 | 
| 3.8.0 | 1,614,254 | 3/19/2024 | 
| 3.8.0-beta.8238206979 | 2,076 | 3/11/2024 | 
| 3.7.0 | 1,294,522 | 1/9/2024 | 
| 3.6.0 | 658,398 | 11/10/2023 | 
| 3.5.0 | 442,464 | 9/7/2023 | 
| 3.4.0 | 170,956 | 8/10/2023 | 
| 3.3.0 | 422,015 | 6/27/2023 | 
| 3.2.0 | 263,138 | 5/23/2023 | 
| 3.1.0 | 141,029 | 4/28/2023 | 
| 3.0.0 | 300,873 | 3/8/2023 |