Skip to content

Commit

Permalink
Fix the multi targetting and extended it to another package
Browse files Browse the repository at this point in the history
Signed-off-by: James Thompson <thompson.tomo@outlook.com>
  • Loading branch information
thompson-tomo committed Apr 20, 2024
1 parent cb7e40f commit 58cedd6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/CycloneDX.Core/CycloneDX.Core.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0;net5.0</TargetFramework>
<TargetFrameworks>netstandard2.0;net5.0</TargetFrameworks>
<Product>CycloneDX.Core</Product>
<Description>A .NET Standard library for CycloneDX bill-of-material documents.</Description>
<PackageId>CycloneDX.Core</PackageId>
Expand All @@ -17,6 +17,7 @@
<PackageReference Include="protobuf-net.BuildTools" Version="3.2.12" PrivateAssets="all" IncludeAssets="runtime;build;native;contentfiles;analyzers;buildtransitive" />
</ItemGroup>

<!--The below packages are natively provided by the framework hence are not need for the frameworks which they are included in. What is included can be checked via https://apisof.net/-->
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
<PackageReference Include="System.Text.Json" Version="7.0.2" />
</ItemGroup>
Expand Down
6 changes: 5 additions & 1 deletion src/CycloneDX.Spdx/CycloneDX.Spdx.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<TargetFrameworks>netstandard2.0;net5.0</TargetFrameworks>
<Product>CycloneDX.Spdx</Product>
<Description>A .NET Standard library for SPDX documents.</Description>
<PackageId>CycloneDX.Spdx</PackageId>
Expand All @@ -13,6 +13,10 @@
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="JsonSchema.Net" Version="3.3.2" />
</ItemGroup>

<!--The below packages are natively provided by the framework hence are not need for the frameworks which they are included in. What is included can be checked via https://apisof.net/-->
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
<PackageReference Include="System.Text.Json" Version="7.0.2" />
</ItemGroup>

Expand Down

0 comments on commit 58cedd6

Please sign in to comment.