You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Rule on comparing different number of dot separated identifiers #43
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.
Activity
NerdyDuck commentedon Aug 11, 2012
I'm sorry, I somehow missed #6 . Please ignore this issue.