2
0

IntegrationTests.csproj 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <Project Sdk="Microsoft.NET.Sdk">
  2. <PropertyGroup>
  3. <TargetFramework>net7.0</TargetFramework>
  4. <ImplicitUsings>enable</ImplicitUsings>
  5. <Nullable>enable</Nullable>
  6. <IsPackable>false</IsPackable>
  7. <IsTestProject>true</IsTestProject>
  8. <!--
  9. 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
  10. Platform analyzers produce the IDE0005 (Remove unnecessary import) diagnostic.
  11. To avoid warnings for missing XML docs, we add CS1591 (Missing XML comment for publicly visible type or member) to the NoWarn property.
  12. We can stop producing XML docs for test projects (and remove the NoWarn for CS1591) once the following issue is fixed:
  13. https://github.com/dotnet/roslyn/issues/41640.
  14. -->
  15. <NoWarn>$(NoWarn);CS1591</NoWarn>
  16. </PropertyGroup>
  17. <ItemGroup>
  18. <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
  19. <PackageReference Include="MSTest.TestAdapter" Version="3.1.1" />
  20. <PackageReference Include="MSTest.TestFramework" Version="3.1.1" />
  21. <PackageReference Include="Testcontainers" Version="3.4.0" />
  22. <!--
  23. Testcontainers has a dependency on SSH.NET which causes build warnings during assembly resolution:
  24. warning MSB3243: No way to resolve conflict between "Renci.SshNet, Version=2023.0.0.0, Culture=neutral
  25. , PublicKeyToken=1cee9f8bde3db106" and "Renci.SshNet, Version=2020.0.2.0, Culture=neutral, PublicKeyToken=1cee9f8bde3db
  26. 106". Choosing "Renci.SshNet, Version=2023.0.0.0, Culture=neutral, PublicKeyToken=1cee9f8bde3db106" arbitrarily.
  27. To fix, we explicitly exclude the SSH.NET nuget package from this project's dependencies.
  28. -->
  29. <PackageReference Include="SSH.NET" Version="2020.0.2" ExcludeAssets="All"/>
  30. <PackageReference Include="coverlet.collector" Version="6.0.0">
  31. <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
  32. <PrivateAssets>all</PrivateAssets>
  33. </PackageReference>
  34. </ItemGroup>
  35. <ItemGroup>
  36. <ProjectReference Include="..\Renci.SshNet\Renci.SshNet.csproj" />
  37. </ItemGroup>
  38. </Project>