majkinetor / au

Chocolatey Automatic Package Updater Module
GNU General Public License v2.0
227 stars 71 forks source link

Test-Package unable to handle my pre-release package version #176

Closed TraGicCode closed 5 years ago

TraGicCode commented 5 years ago

When running Test-Package cmdlet on my ravendb chocolatey package with a pre-release version i'm noticing it's dropping the "r" off my package name as shown in the following log output below:

Testing package install
Installing the following packages:
ravendb.4.1.4-patch-41009.nupkg
By installing you accept licenses for the packages.
'avendb.4.1.4-patch-41009' is not a valid version string.
Parameter name: version
majkinetor commented 5 years ago

Just replace second - with something else, i.g. ravendb.4.1.4-patch_41009.nupkg (or remove it).

majkinetor commented 5 years ago

The double - doesn't seem valid pre-release version according to nuget specification.

https://docs.microsoft.com/en-us/nuget/create-packages/prerelease-packages