The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 4,226 other subscribers

Comparing versions with wildcards and without them (for instance for semantic versioning)

Posted by jpluimers on 2020/08/12

For a project I’m going to be in need to compare version numbers.

I’m not sure yet if I need wildcards, or can leave them out (but for partial semantic versioning, I might need them).

Below a bunch of links that should get me started.

From a quick glance: versioning is hard, comparing even harder.

On versioning in general

Numeric versioning (usually without wildcards):

On semantic versioning (SemVer for short):

On the C# Version class (which handles most of semantic versioning except: leading zero’s, very large numbers, non-numeric release specifiers)

Interesting idea, but not sustainable: using floating point values to compare versions:

On wildcards:

Via: [WayBack] Anyone tips for a TVersion structure that supports at max quad digits or wildcards and comparison? Like 3.2 matching 3.2.5.7, but not matching 3.3.4.28 ? – Jeroen Wiert Pluimers – Google+

–jeroen

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

 
%d bloggers like this: