Precept.Containers
0.12.1
See the version list below for details.
dotnet add package Precept.Containers --version 0.12.1
NuGet\Install-Package Precept.Containers -Version 0.12.1
<PackageReference Include="Precept.Containers" Version="0.12.1" />
<PackageVersion Include="Precept.Containers" Version="0.12.1" />
<PackageReference Include="Precept.Containers" />
paket add Precept.Containers --version 0.12.1
#r "nuget: Precept.Containers, 0.12.1"
#:package Precept.Containers@0.12.1
#addin nuget:?package=Precept.Containers&version=0.12.1
#tool nuget:?package=Precept.Containers&version=0.12.1
Precept.Containers
Docker-backed dependencies for Precept runs, through Testcontainers. A service is started once per run, on first use, and the tests are handed its address.
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 framework built on Microsoft.Testing.Platform. Full documentation: containers · environments · startup
| Product | Versions 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. |
-
net10.0
- Microsoft.Extensions.Configuration (>= 10.0.12)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.12)
- Microsoft.Extensions.Configuration.EnvironmentVariables (>= 10.0.12)
- Microsoft.Extensions.Configuration.Json (>= 10.0.12)
- Microsoft.Extensions.DependencyInjection (>= 10.0.12)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.12)
- Precept.Core (>= 0.12.1)
- Testcontainers (>= 4.15.0)
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.14.0 | 83 | 11/11/2026 |
| 0.13.0 | 113 | 10/26/2026 |
| 0.13.0-rc.2 | 64 | 10/15/2026 |
| 0.13.0-rc.1 | 66 | 10/5/2026 |
| 0.12.1 | 111 | 10/21/2026 |
| 0.12.0 | 123 | 9/19/2026 |
| 0.11.1 | 105 | 9/16/2026 |
| 0.11.0 | 109 | 9/15/2026 |
| 0.10.0 | 115 | 9/10/2026 |
| 0.8.0 | 238 | 9/10/2026 |
| 0.7.0 | 135 | 9/9/2026 |
| 0.6.0 | 115 | 9/2/2026 |
| 0.5.1 | 121 | 9/2/2026 |
| 0.5.0 | 110 | 9/1/2026 |
| 0.4.1 | 120 | 8/16/2026 |
| 0.4.0 | 139 | 8/16/2026 |
| 0.3.0 | 118 | 8/15/2026 |
| 0.2.0 | 112 | 8/15/2026 |
| 0.1.3 | 120 | 8/13/2026 |