Skip to content

Commit

Permalink
chore: fix tests for .NET 4.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
fgreinacher committed Jan 8, 2024
1 parent bc4723f commit ada29b2
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,14 @@
-->
<EnableUnsafeBinaryFormatterSerialization Condition="'$(TargetFramework)' == 'net8.0'">true</EnableUnsafeBinaryFormatterSerialization>
</PropertyGroup>
<!--
Snapshooter is currently broken when referencing NUnit 4 from a .NET 4.6.2 project.
The following blocks work around this by referencing NUnit 3 in that case.
-->
<PropertyGroup>
<_Net462NUnitVersion>3.14.0</_Net462NUnitVersion>
</PropertyGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net462'">
<PackageReference Update="NUnit" Version="$(_Net462NUnitVersion)" />
</ItemGroup>
</Project>

0 comments on commit ada29b2

Please sign in to comment.