Skip to content

Commit

Permalink
ci: downgrade xunit to 2.4.2 since xunit.runners.visualstudio that ha…
Browse files Browse the repository at this point in the history
…s support for net5 and older
  • Loading branch information
egil committed Sep 5, 2023
1 parent 12f1cfd commit 2ee619f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/bunit.web.testcomponents/bunit.web.testcomponents.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
<ItemGroup>
<PackageReference Include="SourceFileFinder" Version="1.1.0" />
<PackageReference Include="xunit.assert" Version="2.4.2" />
<PackageReference Include="xunit.extensibility.core" Version="2.5.0" />
<PackageReference Include="xunit.extensibility.execution" Version="2.5.0" />
<PackageReference Include="xunit.extensibility.core" Version="2.4.2" />
<PackageReference Include="xunit.extensibility.execution" Version="2.4.2" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.1'">
Expand Down
10 changes: 7 additions & 3 deletions tests/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,14 @@
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
<PackageReference Include="NSubstitute" Version="5.0.0" />
<PackageReference Include="Shouldly" Version="4.2.1" />
<PackageReference Include="xunit" Version="2.5.0" />
<PackageReference Include="Xunit.Combinatorial" Version="1.6.24" />
<PackageReference Include="coverlet.msbuild" Version="6.0.0" PrivateAssets="All" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.0">
<PackageReference Include="Xunit.Combinatorial" Version="1.6.24" />
</ItemGroup>

<ItemGroup>
<!-- DO NOT UPGRADE TO versions > 2.4.2 as they do not support .net5 or older -->
<PackageReference Include="xunit" Version="2.4.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
<NoWarn>NU1701</NoWarn>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="xunit.extensibility.core" Version="2.5.0" />
<PackageReference Include="xunit.extensibility.execution" Version="2.5.0" />
<PackageReference Include="xunit.runner.utility" Version="2.5.0" />
<PackageReference Include="xunit.runner.utility" Version="2.4.2" />
<PackageReference Update="Shouldly" Version="4.1.0">
<!-- some test fails with > 4.1.0 -->
<NoWarn>NU1605</NoWarn>
Expand Down

0 comments on commit 2ee619f

Please sign in to comment.