Precept.Containers 0.10.0

dotnet add package Precept.Containers --version 0.10.0
                    
NuGet\Install-Package Precept.Containers -Version 0.10.0
                    
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="Precept.Containers" Version="0.10.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Precept.Containers" Version="0.10.0" />
                    
Directory.Packages.props
<PackageReference Include="Precept.Containers" />
                    
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 Precept.Containers --version 0.10.0
                    
#r "nuget: Precept.Containers, 0.10.0"
                    
#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.
#:package Precept.Containers@0.10.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Precept.Containers&version=0.10.0
                    
Install as a Cake Addin
#tool nuget:?package=Precept.Containers&version=0.10.0
                    
Install as a Cake Tool

Precept.Containers

Docker-backed dependencies for Precept runs, via Testcontainers: start a service once for the run, hand the tests its address, and tear it down afterwards.

dotnet add package Precept.Containers
services.AddPreceptContainers(host => host.Register(
    "greeter",
    "my/greeter:latest",
    c => c.WithPortBinding(5000, true)
          .WithWaitStrategy(Wait.ForUnixContainer().UntilPortIsAvailable(5000)),
    addressOverride: settings.Configuration["Greeter:Address"]));

addressOverride is the point of the module: when it is set, no container starts and the tests are handed that address instead. The same suite then runs against a throwaway container on a developer's machine and against a deployed environment in CI, with the environment overlay deciding which — and no if in the tests.


Part of Precept, a .NET 10 test automation framework. Full documentation: containers · environments · startup

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.10.0 46 9/10/2026
0.8.0 48 9/10/2026
0.7.0 69 9/9/2026
0.6.0 90 9/2/2026
0.5.1 98 9/2/2026
0.5.0 84 9/1/2026
0.4.1 99 8/16/2026
0.4.0 116 8/16/2026
0.3.0 95 8/15/2026
0.2.0 95 8/15/2026
0.1.3 96 8/13/2026
0.1.2 99 8/13/2026
0.1.1 100 8/13/2026
0.1.0 96 8/12/2026