managed-commons / SvgNet

Fork of the SVG library for .NET that makes a GdiGraphics that "draws" on a SVG model
BSD 3-Clause "New" or "Revised" License
84 stars 37 forks source link

System.Drawing.Primitives is not necessary when targeting .NET 5.0 #38

Closed glopesdev closed 3 years ago

glopesdev commented 3 years ago

The System.Drawing.Primitives nuget package is no longer required when targeting .NET 5.0. This package has not been updated since 2016 and my understanding it was a temporary transition package for .NET Core 3.x cross-compatibility.

This dependency can be removed for target net5.0, which will also remove a number of unused upstream dependencies and overall provide a cleaner environment when targeting .NET 5.0.

I will provide a pull request with a tentative fix shortly.

Edit: It can actually be removed for all targets now. Referencing System.Drawing.Common seems to be enough.