Skip to content

Commit

Permalink
fix: Setup Workaround for multiple targetframeworks (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
samtrion authored Jun 11, 2024
1 parent 72289a2 commit 3cd4e5c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@
<PackageVersion Include="NetEvolve.Extensions.XUnit" Version="2.2.12" />
<PackageVersion Include="Polyfill" Version="5.3.0" />
<PackageVersion Include="xunit" Version="2.8.1" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net5.0' Or '$(TargetFramework)' == 'netcoreapp3.1' ">
<PackageVersion Include="xunit.runner.visualstudio" Version="2.4.5" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' != 'net5.0' And '$(TargetFramework)' != 'netcoreapp3.1' ">
<PackageVersion Include="xunit.runner.visualstudio" Version="2.8.1" />
<PackageVersion Update="xunit.runner.visualstudio" Version="2.8.1" Condition=" '$(TargetFramework)' == 'net5.0' Or '$(TargetFramework)' == 'netcoreapp3.1' " />
</ItemGroup>
</Project>

0 comments on commit 3cd4e5c

Please sign in to comment.