maxmind/GeoIP2-dotnet

NuGet version compiled against .NET Framework 4.5

Mailaender opened this issue · 9 comments

It looks like we are forced to use Framework version 4.5.2 if we want to support .NET and Visual Studio, and forced to use 4.5 if we want to support MonoDevelop and Mono for OpenRA/OpenRA#10280 Could you add a net45 folder to the NuGet package to get us out of this dependency hell?

Microsoft's end of life for 4.5 is January 12, 2016. Could you force the Mono version you are using to treat it as 4.5?

Mono or rather xbuild only understands the major version as targets and seems to be missing a redirect:

image

I filed a bug at https://bugzilla.xamarin.com/show_bug.cgi?id=37286 but that probably won't get addressed any time soon.

This will also stop you from entering the major Linux distribution repositories: https://bugzilla.redhat.com/show_bug.cgi?id=1279085

If you are building it from source, as most distributions do, you can just pass the target framework to xbuild, e.g., xbuild /p:TargetFrameworkVersion="v4.5".

Is the same issue?

Could not install package 'MaxMind.GeoIP2 2.5.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author. 0

I am seeing this problem when I try to run this command, can you please advice how to get around it? thank you.

PM> Install-Package MaxMind.GeoIP2 -Version 2.5.0
Attempting to resolve dependency 'MaxMind.Db (≥ 1.2.0)'.
Attempting to resolve dependency 'Newtonsoft.Json (≥ 7.0.1)'.
Installing 'MaxMind.GeoIP2 2.5.0'.
Successfully installed 'MaxMind.GeoIP2 2.5.0'.
Adding 'MaxMind.Db 1.2.0' to ProbeAPIService.
Successfully added 'MaxMind.Db 1.2.0' to ProbeAPIService.
Adding 'MaxMind.GeoIP2 2.5.0' to ProbeAPIService.
Uninstalling 'MaxMind.GeoIP2 2.5.0'.
Successfully uninstalled 'MaxMind.GeoIP2 2.5.0'.
Install failed. Rolling back...
Install-Package : Could not install package 'MaxMind.GeoIP2 2.5.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5', but the package does not contain any assembly references
or content files that are compatible with that framework. For more information, contact the package author.

At line:1 char:1

  • Install-Package MaxMind.GeoIP2 -Version 2.5.0
  • - CategoryInfo          : NotSpecified: (:) [Install-Package], InvalidOperationException
    - FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
    

2.5.0 required .NET 4.5.2. Try Install-Package MaxMind.GeoIP2 -Pre to get the latest beta, which relaxes the requirement to 4.5.

I will go ahead with 2.4 cause I do not know how stable the beta is and we really do not need any surprises.
is it known the release date of the 2.6 ?

We don't have a set release date for 2.6, but there are no known issues with it.