When I use nuget.exe
to install Moq 4.2.1502.911 using nuget.org (https://www.nuget.org/api/v2/) as the source, the folder name is Moq.4.2.1502.0911
.
When I upload the same package to a ProGet server and try to use nuget.exe
to install that package, the folder name is Moq.4.2.1502.911
.
Visual Studio is able to successfully use the nuget.org package, but not the ProGet package. This is probably because the reference to Moq.dll
that is automatically added to the .csproj
file uses the folder name with the 0 (Moq.4.2.1502.0911
).
Looking into the .nuspec
file, the <version>
node is <version>4.2.1502.0911</version>
, which matches the folder name when installing from nuget.org.
Why does ProGet handle the package differently than nuget.org?