NuGet Product Used
NuGet.exe
Product Version
NuGet 6.13.2.1
Worked before?
NuGet 6.12.x
Impact
I'm unable to use this version
Repro Steps & Context
We call
nuget.exe pack Package.nuspec -NonInteractive -Properties "version=2.0.0;prerelease=-preview"
Our Nuspec file looks like (no project sdk yet)
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>Package</id>
<version>$version$$prerelease$</version>
...
<dependencies>
<dependency id="Other.Package" version="[$version$$prerelease$]" />
</dependencies>
</metadata>
<files>
...
</files>
</package>
With the older nuget.exe a file package.2.0.0-preview.nupkg is created with the metadata version 2.0.0-preview
Now a file package.2.0.0.nupkg is created with the metadata version 2.0.0
Remarkable is that the dependencies still have the prerelease information in the versionspec, only the package version is affected.
It is really critical, because now all of our preview nugets are not flagged as preview and all nuget updates will automatically choose the latest version which is usually a preview.
Verbose Logs
NuGet Product Used
NuGet.exe
Product Version
NuGet 6.13.2.1
Worked before?
NuGet 6.12.x
Impact
I'm unable to use this version
Repro Steps & Context
We call
nuget.exe pack Package.nuspec -NonInteractive -Properties "version=2.0.0;prerelease=-preview"Our Nuspec file looks like (no project sdk yet)
With the older nuget.exe a file
package.2.0.0-preview.nupkgis created with the metadata version2.0.0-previewNow a file
package.2.0.0.nupkgis created with the metadata version2.0.0Remarkable is that the dependencies still have the prerelease information in the versionspec, only the package version is affected.
It is really critical, because now all of our preview nugets are not flagged as preview and all nuget updates will automatically choose the latest version which is usually a preview.
Verbose Logs