Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 7fc391b

Browse files
committedFeb 13, 2025··
fix: Replace link to targets file
1 parent 75d564d commit 7fc391b

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed
 

‎Testcontainers.sln

+3-3
Original file line numberDiff line numberDiff line change
@@ -218,13 +218,13 @@ EndProject
218218
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Testcontainers.Xunit.Tests", "tests\Testcontainers.Xunit.Tests\Testcontainers.Xunit.Tests.csproj", "{E901DF14-6F05-4FC2-825A-3055FAD33561}"
219219
EndProject
220220
Global
221-
GlobalSection(SolutionProperties) = preSolution
222-
HideSolutionNode = FALSE
223-
EndGlobalSection
224221
GlobalSection(SolutionConfigurationPlatforms) = preSolution
225222
Debug|Any CPU = Debug|Any CPU
226223
Release|Any CPU = Release|Any CPU
227224
EndGlobalSection
225+
GlobalSection(SolutionProperties) = preSolution
226+
HideSolutionNode = FALSE
227+
EndGlobalSection
228228
GlobalSection(ProjectConfigurationPlatforms) = postSolution
229229
{5365F780-0E6C-41F0-B1B9-7DC34368F80C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
230230
{5365F780-0E6C-41F0-B1B9-7DC34368F80C}.Debug|Any CPU.Build.0 = Debug|Any CPU

‎docs/modules/db2.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# IBM DB2
1+
# Db2
22

3-
[IBM DB2](https://www.ibm.com/db2) is a relational database engine developed by IBM.
3+
[Db2](https://www.ibm.com/db2) is a relational database engine developed by IBM.
44

55
Add the following dependency to your project file:
66

@@ -10,9 +10,9 @@ dotnet add package Testcontainers.Db2
1010

1111
!!! warning
1212

13-
The Linux client dependency, [Net.IBM.Data.Db2-lnx](https://www.nuget.org/packages/Net.IBM.Data.Db2-lnx), requires additional configurations. We use the [Testcontainers.Db2.Tests.targets](tests/Testcontainers.Db2.Tests/Testcontainers.Db2.Tests.targets) file to configure the environment variables: `LD_LIBRARY_PATH`, `PATH`, `DB2_CLI_DRIVER_INSTALL_PATH`, at runtime.
13+
The Linux client dependency, [Net.IBM.Data.Db2-lnx](https://www.nuget.org/packages/Net.IBM.Data.Db2-lnx), requires additional configurations. We use the [Testcontainers.Db2.Tests.targets](https://github.com/testcontainers/testcontainers-dotnet/blob/develop/tests/Testcontainers.Db2.Tests/Testcontainers.Db2.Tests.targets) file to configure the environment variables: `LD_LIBRARY_PATH`, `PATH`, `DB2_CLI_DRIVER_INSTALL_PATH`, at runtime.
1414

15-
You can start an DB2 container instance from any .NET application. This example uses xUnit.net's `IAsyncLifetime` interface to manage the lifecycle of the container. The container is started in the `InitializeAsync` method before the test method runs, ensuring that the environment is ready for testing. After the test completes, the container is removed in the `DisposeAsync` method.
15+
You can start an Db2 container instance from any .NET application. This example uses xUnit.net's `IAsyncLifetime` interface to manage the lifecycle of the container. The container is started in the `InitializeAsync` method before the test method runs, ensuring that the environment is ready for testing. After the test completes, the container is removed in the `DisposeAsync` method.
1616

1717
=== "Usage Example"
1818
```csharp

‎tests/Testcontainers.Db2.Tests/Testcontainers.Db2.Tests.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
<IsPackable>false</IsPackable>
55
<IsPublishable>false</IsPublishable>
66
</PropertyGroup>
7+
<!-- -8<- [start:PackageReferences] -->
78
<ItemGroup>
89
<PackageReference Include="Microsoft.NET.Test.Sdk"/>
910
<PackageReference Include="coverlet.collector"/>
1011
<PackageReference Include="xunit.runner.visualstudio"/>
1112
<PackageReference Include="xunit"/>
1213
</ItemGroup>
13-
<!-- -8<- [start:PackageReferences] -->
1414
<ItemGroup Condition="$([MSBuild]::IsOSPlatform('Linux'))">
1515
<PackageReference Include="Net.IBM.Data.Db2-lnx"/>
1616
</ItemGroup>

0 commit comments

Comments
 (0)
Please sign in to comment.