mathnet / mathnet-numerics

Math.NET Numerics
http://numerics.mathdotnet.com
MIT License
3.47k stars 893 forks source link

Mathnet v4.5.1 signed nuget package fails to install #600

Open udittandon95 opened 5 years ago

udittandon95 commented 5 years ago

When am trying to install Mathnet v4.5.1 signed nuget package using Visual Studio it works fine but when I try it using MS build , somehow it gives error saying it is unable to find the nuget package. I am using nuget.targets and nuget.exe 4.7.1 for the same. Can some one let me know if am doing something wrong ?

cdrnet commented 5 years ago

You're refering to the strong-name edition package MathNet.Numerics.Signed (yes, then naming is confusing - the ".Signed" is referring to strong naming, not to code signing)? This package actually does not have a version 4.5.1 (4.5.0 is newest) due to a packaging issue related to code signing when releasing v4.5.1. The only difference between 4.5.0 and 4.5.1 is code signing and NuGet package signing. If you really need the strong-name package, can you use 4.5.0 instead until the next release?

udittandon95 commented 5 years ago

No I was talking about Mathnet.Numerics v4.5.1 , not Mathnet.Numerics.Signed . I will try using Mathnet.Numerics v4.5.0 . And will update.

cdrnet commented 5 years ago

Mathnet.Numerics v4.5.1 should certainly work. If it does not, I'd be interested in more details on how exactly it is failing (maybe there is a bug somehwere in how package and code signing signatures are verified after the certificate has expired - the certificate I had used just expired a few days ago, so this could be related, even though the signatures have a proper signed timestamps).

udittandon95 commented 5 years ago

Ok, so I tried Mathnet.Numerics v4.5.0 and faced the same issue. First of all there are three scenarios I would like to mention here : ( I am using NuGet.exe v4.7.1 for extracting)

1) When i try to extract using visual studio 15, it works completely fine and I get a signature file as well . 2) I try extracting through msbuild, i get the dlls but not the signature file. 3) When am trying to extract on a xaml build, it fails to extract the package saying " File does not exist" .

I am currently using mathnet.numerics v3.13.1 and there is no issue with it.

I am unable to figure out the issue. It is not a coding or file location error as same is happening just fine in visual studio and msbuild.