Skip to content

NuGet 6.13.2.1 does no longer support prerelease versions #14219

@TureyLab

Description

@TureyLab

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

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions