maxmind/geoip-api-csharp2

Strong Name for MaxMind.GeoIP from NuGet

Crayder opened this issue · 8 comments

CSC : error CS1577: Assembly generation failed -- Referenced assembly 'MaxMind.GeoIP' does not have a strong name

I'm getting that when I want to compile a project with the GeoIP package from NuGet.

Solved with an automatic package signer.

The MaxMind.GeoIP package on NuGet was released by a third party. For new development, we recommend MaxMind.GeoIP2.

Yeah, MaxMind.GeoIP2 isn't listed in the VS NuGet Package list. I'll definitely try the GeoIP2 package later.

Yeah I noticed that, I'll just have to use the console.

PM> Install-Package MaxMind.GeoIP2
Attempting to resolve dependency 'MaxMind.Db (≥ 1.2.0)'.
Attempting to resolve dependency 'Newtonsoft.Json (≥ 7.0.1)'.
Installing 'Newtonsoft.Json 7.0.1'.
Successfully installed 'Newtonsoft.Json 7.0.1'.
Installing 'MaxMind.Db 1.2.0'.
Successfully installed 'MaxMind.Db 1.2.0'.
Installing 'MaxMind.GeoIP2 2.5.0'.
Successfully installed 'MaxMind.GeoIP2 2.5.0'.
Adding 'Newtonsoft.Json 7.0.1' to dotnet.
Uninstalling 'Newtonsoft.Json 7.0.1'.
Successfully uninstalled 'Newtonsoft.Json 7.0.1'.
Install failed. Rolling back...
Install-Package : Could not install package 'Newtonsoft.Json 7.0.1'. You are trying to install this package into a project that 
targets 'Native,Version=v0.0', but the package does not contain any assembly references or content files that are compatible wit
h that framework. For more information, contact the package author.
At line:1 char:16
+ Install-Package <<<<  MaxMind.GeoIP2
    + CategoryInfo          : NotSpecified: (:) [Install-Package], InvalidOperationException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand

I'm getting this with the GeoIP2

I am surprised MaxMind.GeoIP works. This sounds like this bug to me.

Well it's not working actually, it won't load the databases or something. So I was hoping GeoIP2 would work.

Also, just like in that page you linked, every page I find about this You are trying to install this package into a project that targets 'Native,Version=v0.0' thing is about a C++ project. I'm trying to add the package to my C# project. The solution itself has two projects though, one C# and one C++.