Skip to content

Commit

Permalink
Split target of dotnet libraries
Browse files Browse the repository at this point in the history
This will make only .NET 7 pull in v7 of core .NET libraries
  • Loading branch information
Turnerj committed Dec 23, 2023
1 parent 685b301 commit 38fa7b9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions Source/Schema.NET.Pending/Schema.NET.Pending.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,16 @@
<PackageTags>Schema;.NET;Schema.org;Schema.NET;Structured Data;Google Structured Data</PackageTags>
</PropertyGroup>

<ItemGroup Label="Package References">
<PackageReference Include="System.Text.Json" Version="7.0.0" />
<ItemGroup Label="Package References (Common)">
<PackageReference Include="System.Text.Json" Version="6.0.7" Condition="'$(TargetFramework)' != 'net7.0'" />
<PackageReference Include="System.Memory" Version="4.5.5" />
<ProjectReference Include="../../Tools/Schema.NET.Tool/Schema.NET.Tool.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
</ItemGroup>

<ItemGroup Label="Package References (.NET 7)" Condition="'$(TargetFramework)' == 'net7.0'">
<PackageReference Include="System.Text.Json" Version="7.0.0" />
</ItemGroup>

<ItemGroup Label="Package References (.NET Framework)" Condition="'$(TargetFramework)' == 'net462'">
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
</ItemGroup>
Expand Down
8 changes: 6 additions & 2 deletions Source/Schema.NET/Schema.NET.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,15 @@
<PackageTags>Schema;.NET;Schema.org;Schema.NET;Structured Data;Google Structured Data</PackageTags>
</PropertyGroup>

<ItemGroup Label="Package References">
<PackageReference Include="System.Text.Json" Version="7.0.0" />
<ItemGroup Label="Package References (Common)">
<PackageReference Include="System.Text.Json" Version="6.0.7" Condition="'$(TargetFramework)' != 'net7.0'" />
<PackageReference Include="System.Memory" Version="4.5.5" />
<ProjectReference Include="../../Tools/Schema.NET.Tool/Schema.NET.Tool.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
</ItemGroup>

<ItemGroup Label="Package References (.NET 7)" Condition="'$(TargetFramework)' == 'net7.0'">
<PackageReference Include="System.Text.Json" Version="7.0.0" />
</ItemGroup>

<ItemGroup Label="Package References (.NET Framework)" Condition="'$(TargetFramework)' == 'net462'">
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
Expand Down

0 comments on commit 38fa7b9

Please sign in to comment.