mission202 / Stringly.Typed

Making it easier to convert strings to/from .NET types.
https://www.nuget.org/packages/Stringly.Typed/
MIT License
47 stars 4 forks source link

Build "Semantic Version" via Stringly.Typed #1

Open robcthegeek opened 8 years ago

robcthegeek commented 8 years ago

So, I built Stringly.Typed to make "building things from strings" easier, seems this project (and another at a current client) could really use a "Semantic Version Number".

So, let's make it happen!

🏁

Pay particular attention to the section on metadata precedence:

Precedence for two pre-release versions with the same major, minor, and patch version MUST be determined by comparing each dot separated identifier from left to right until a difference is found as follows: identifiers consisting of only digits are compared numerically and identifiers with letters or hyphens are compared lexically in ASCII sort order. Numeric identifiers always have lower precedence than non-numeric identifiers. A larger set of pre-release fields has a higher precedence than a smaller set, if all of the preceding identifiers are equal. Example: 1.0.0-alpha < 1.0.0-alpha.1 < 1.0.0-alpha.beta < 1.0.0-beta < 1.0.0-beta.2 < 1.0.0-beta.11 < 1.0.0-rc.1 < 1.0.0.