Skip to content

Commit

Permalink
Nuget dependency Cleanup (#1071)
Browse files Browse the repository at this point in the history
* don't refererence System.Memory and System.ObjectModel in Target Frameworks that don't need them
  • Loading branch information
inforithmics authored Aug 26, 2023
1 parent 32f98ee commit bc4d7d6
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions Source/Svg.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,13 @@
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0" PrivateAssets="All" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp2.1' Or '$(TargetFramework)' == 'netcoreapp3.1' Or '$(TargetFramework)' == 'net6.0'">
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0' Or '$(TargetFramework)' == 'netstandard2.1' Or '$(TargetFramework)' == 'netcoreapp2.1' Or '$(TargetFramework)' == 'netcoreapp3.1' Or '$(TargetFramework)' == 'net6.0'">
<PackageReference Include="System.Drawing.Common" Version="5.0.3" />
<PackageReference Include="System.ObjectModel" Version="4.3.0" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0' Or '$(TargetFramework)' == 'netstandard2.1'">
<PackageReference Include="System.Drawing.Common" Version="5.0.3" />
<PackageReference Include="System.ObjectModel" Version="4.3.0" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0' Or '$(TargetFramework)' == 'net462'">
<PackageReference Include="System.Memory" Version="4.5.4" />
</ItemGroup>

<!-- Mac specific include -->

Expand All @@ -89,7 +87,6 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="System.Memory" Version="4.5.4" />
<PackageReference Include="ExCSS" Version="4.1.4" />
<PackageReference Include="Fizzler" Version="1.2.1" />
<PackageReference Include="Nerdbank.GitVersioning" Version="3.3.37">
Expand Down

0 comments on commit bc4d7d6

Please sign in to comment.