Comparing version numbers – Part II

Today I’d like to share a function for comparing semantic version numbers in PowerShell. To recap: Software developers should use a logical versioning style to better manage dependencies and to just make their releases and cycles well understandable. There is some kind of a specification out there. I’m not sure how “official” this is but … Read more Comparing version numbers – Part II

Comparing version numbers

If you’re using PowerShell, you most probably came across the following issue: Comparing version numbers just doesn’t work if they are stored in strings. The simple case Example:


No! 19 is NOT less than 2, right? PowerShell just uses character after character to sort, order and compare. Because we’re dealing with strings. … Read more Comparing version numbers