|
7 | 7 |
|
8 | 8 | <IsPackable>false</IsPackable> |
9 | 9 | <IsTestProject>true</IsTestProject> |
10 | | - <GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType> |
11 | 10 | <!-- |
12 | 11 | Even though we're not interested in producing XML docs for test projects, we have to enable this in order to have the .NET Compiler |
13 | 12 | Platform analyzers produce the IDE0005 (Remove unnecessary import) diagnostic. |
|
25 | 24 | <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" /> |
26 | 25 | <PackageReference Include="MSTest.TestAdapter" Version="3.1.1" /> |
27 | 26 | <PackageReference Include="MSTest.TestFramework" Version="3.1.1" /> |
| 27 | + |
28 | 28 | <PackageReference Include="Testcontainers" Version="3.4.0" /> |
| 29 | + <!-- |
| 30 | + Testcontainers has a dependency on SSH.NET which causes build warnings during assembly resolution: |
| 31 | + |
| 32 | + warning MSB3243: No way to resolve conflict between "Renci.SshNet, Version=2023.0.0.0, Culture=neutral |
| 33 | + , PublicKeyToken=1cee9f8bde3db106" and "Renci.SshNet, Version=2020.0.2.0, Culture=neutral, PublicKeyToken=1cee9f8bde3db |
| 34 | + 106". Choosing "Renci.SshNet, Version=2023.0.0.0, Culture=neutral, PublicKeyToken=1cee9f8bde3db106" arbitrarily. |
| 35 | + |
| 36 | + To fix, we explicitly exclude the SSH.NET nuget package from this project's dependencies. |
| 37 | + --> |
| 38 | + <PackageReference Include="SSH.NET" Version="2020.0.2" ExcludeAssets="All"/> |
| 39 | + |
29 | 40 | <PackageReference Include="coverlet.collector" Version="6.0.0"> |
30 | 41 | <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> |
31 | 42 | <PrivateAssets>all</PrivateAssets> |
32 | 43 | </PackageReference> |
33 | 44 | </ItemGroup> |
34 | 45 |
|
35 | 46 | <ItemGroup> |
36 | | - <ProjectReference Include="..\Renci.SshNet\Renci.SshNet.csproj"> |
37 | | - <Aliases>LocalSshNet</Aliases> |
38 | | - </ProjectReference> |
39 | | - </ItemGroup> |
40 | | - |
41 | | - <ItemGroup> |
42 | | - <None Update="app.config"> |
43 | | - <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
44 | | - </None> |
| 47 | + <ProjectReference Include="..\Renci.SshNet\Renci.SshNet.csproj" /> |
45 | 48 | </ItemGroup> |
46 | 49 |
|
47 | 50 | </Project> |
0 commit comments