Repository navigation
Closed
Labels
bugSomething isn't working
Description
Describe the bug
It's impossible to use latest version of WireMock.Net.Testcontainers (which is 2.31.0 as of 2026-11-20) with TestContainers version 4.17.0 due to a binary breaking change involving the constructor of the ContainerConfiguration. I think its related to this change which changes the connectionStringProvider to a callback+factory.
System.MissingMethodException
Method not found: 'Void DotNet.Testcontainers.Configurations.ContainerConfiguration..ctor(DotNet.Testcontainers.Images.IImage, System.Func`2<Docker.DotNet.Models.ImageInspectResponse,Boolean>, System.String, System.String, System.String, System.String, System.Collections.Generic.IEnumerable`1<System.String>, DotNet.Testcontainers.Configurations.ComposableEnumerable`1<System.String>, System.Collections.Generic.IReadOnlyDictionary`2<System.String,System.String>, System.Collections.Generic.IReadOnlyDictionary`2<System.String,System.String>, System.Collections.Generic.IReadOnlyDictionary`2<System.String,System.String>, System.Collections.Generic.IEnumerable`1<DotNet.Testcontainers.Configurations.IResourceMapping>, System.Collections.Generic.IEnumerable`1<DotNet.Testcontainers.Containers.IContainer>, System.Collections.Generic.IEnumerable`1<DotNet.Testcontainers.Configurations.IMount>, System.Collections.Generic.IEnumerable`1<DotNet.Testcontainers.Networks.INetwork>, System.Collections.Generic.IEnumerable`1<System.String>, System.Collections.Generic.IEnumerable`1<System.String>, DotNet.Testcontainers.Configurations.IOutputConsumer, System.Collections.Generic.IEnumerable`1<DotNet.Testcontainers.Configurations.WaitStrategy>, System.Func`4<DotNet.Testcontainers.Containers.IContainer,DotNet.Testcontainers.Configurations.IContainerConfiguration,System.Threading.CancellationToken,System.Threading.Tasks.Task>, DotNet.Testcontainers.Configurations.IConnectionStringProvider`2<DotNet.Testcontainers.Containers.IContainer,DotNet.Testcontainers.Configurations.IContainerConfiguration>, System.Nullable`1<Boolean>, System.Nullable`1<Boolean>)'.
at WireMock.Net.Testcontainers.WireMockConfiguration..ctor(String username, String password)
at WireMock.Net.Testcontainers.WireMockConfiguration..ctor(String username, String password)
at WireMock.Net.Testcontainers.WireMockContainerBuilder..ctor()
at MyProject.Tests.Fixtures.WireMockContainerFixture..ctor() in D:\Source\MyProject\test\MyProject.Tests\Fixtures\WireMockContainerFixture.cs:line 13
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Constructor(Object obj, IntPtr* args)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
Expected behavior:
WireMock.Net.TestContainers works with TestContainers 4.17.0
Test to reproduce
- Use
WireMock.Net.TestContainersat version2.31.0 - Use
TestContainersversion4.17.0
Other related info
Provide additional information if any.
Activity
StefH commentedon Nov 20, 2026
They broke it again ;-)
StefH commentedon Nov 20, 2026
#1547