Skip to content

Rule on comparing different number of dot separated identifiers #43

Closed

Description

@NerdyDuck

While implementing the Semantic Versioning rules as a class and an assembly attribute in .Net, I noticed that there is no explicit rule when comparing pre-release or build elements of two version strings that have a different number of dot separated identifiers.

An example:
v1 = 1.0.0-rc.1
v2 = 1.0.0-rc.1.20120810

Lexicographic order would suggest that v1 has precedence over v2 as it is shorter. Personally, I would recommend that v2 has precedence as it contains more information, and that's the way I implemented it in my project.

Any thoughts and comments are appreciated!

Activity

  1. NerdyDuck commented on Aug 11, 2012

    @NerdyDuck
    Author

    I'm sorry, I somehow missed #6 . Please ignore this issue.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions