Skip to content

[ISSUE]: The version format generated for prerelease builds pre-1.0 are not accepted by NuGet.org. #4597

Description

@otac0n

Prerequisites

  • I have written a descriptive issue title
  • I have searched issues to ensure it has not already been reported

GitVersion package

GitVersion.MsBuild

GitVersion version

6.3.0

Operating system

Windows

What are you seeing?

Prerelease versions that aren't tagged as an explicit version generate SemVer versions like 0.0.1-4

While this is valid SemVer 2.0, it is rejected by NuGet.org Please include tag like 0.0.1-build.4 or similar even for prerelease builds.

What is expected?

The version number generated and attached to .nupkg files should never be rejected by NuGet.org.

Steps to Reproduce

Generate a package from a version before 1.0 but do not tag the branch.

RepositoryFixture Test

No response

Output log or link to your CI build (if appropriate).

https://ci.appveyor.com/project/otac0n/conversationmodel/builds/52293368

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions