jsakamoto / ipaddressrange

.NET Class Library for range of IP address, both IPv4 and IPv6.
Mozilla Public License 2.0
368 stars 71 forks source link

Lots of dependencies #29

Closed UweKeim closed 7 years ago

UweKeim commented 7 years ago

Trying to NuGet your library into my .NET 4.6.2 project, there are tons of dependencies it tries to install:

image

Most likely this is because your project targets .NET Standard and it has to close the gaps from .NET 4.6.2 to .NET Standard.

Since your library effectively seems to consist of only two files (Bits.cs and IPAddressRange.cs) I feel that this is way too much for my project to justify adding so many dependencies.

My question:

Beside directly using the two sources files, is there any other NuGet solution to still get your library and benefit from updates, without adding all those dependencies?

jsakamoto commented 7 years ago

@UweKeim Thank you for your reporting!

I resolved this issue by add one line into package metadata about ".NET Framework 4.5 or above has no dependencies" explicitly.

Could you try to use v.2.0.0.3-Beta?

https://www.nuget.org/packages/IPAddressRange/2.0.0.3-beta

PM> Install-Package IPAddressRange -Pre
UweKeim commented 7 years ago

It works as expected. Thanks a lot for your fast and helpful fix 😄.