Skip to content

Commit

Permalink
uses adapted versions of System.Text.Json for .NET 5-8 (#562)
Browse files Browse the repository at this point in the history
  • Loading branch information
pardeike committed Jan 11, 2024
1 parent e63e183 commit 1b16c96
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Harmony/Harmony.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,18 @@
</ItemGroup>
</Target>

<ItemGroup Condition="$(IsNET5OrGreater)">
<ItemGroup Condition="'$(TargetFramework)'=='net5.0'">
<PackageReference Include="System.Text.Json" Version="5.0.2" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)'=='net6.0'">
<PackageReference Include="System.Text.Json" Version="6.0.9" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)'=='net7.0'">
<PackageReference Include="System.Text.Json" Version="7.0.4" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)'=='net8.0'">
<PackageReference Include="System.Text.Json" Version="8.0.1" />
</ItemGroup>
<ItemGroup Condition="!$(IsNET5OrGreater)">
<Compile Remove="**\*.net5.cs" />
<Compile Remove="**\*.net6.cs" />
Expand Down

0 comments on commit 1b16c96

Please sign in to comment.