Test Testcontainers ConsoleApp on Linux (#1547)

* Test Testcontainers ConsoleApp on Linux

* fix
This commit is contained in:
Stef Heyenrath authored and GitHub committed 2026-11-20 17:48:55 +01:00
1 parent 3674007295
commit 96c5fcae8e
6 files changed
+113 -2

No files matched your search

@@ -0,0 +1,34 @@
// Copyright © WireMock.Net
using WireMock.Net.Testcontainers;
namespace WireMock.Net.TestContainers.ConsoleApp;
/// <summary>
/// Test if WireMock.Net.Testcontainers is compatible with the latest version of Testcontainers for .NET
/// </summary>
internal class Program
{
private static async Task<int> Main(string[] args)
{
try
{
await TestAsync();
return 0;
}
catch (Exception ex)
{
Console.Error.WriteLine(ex);
return 1;
}
}
private static async Task TestAsync()
{
var builder = new WireMockContainerBuilder()
.WithLinuxImage()
.WithWatchStaticMappings(true);
_ = builder.Build();
}
}
@@ -0,0 +1,18 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Testcontainers" Version="4.17.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\WireMock.Net.Testcontainers\WireMock.Net.Testcontainers.csproj" />
</ItemGroup>
</Project>