I found this blog post and the related Gist. The author does not appear to have created a corresponding NuGet package.
Anyone aware of a NuGet package that already exists?
For reference, here is the specification for semantic versioning.
It turns out that the answer was right under my nose. NuGet.Core itself contains a SemanticVersion class with a TryParse method.
And, you can, in fact, install NuGet.Core via NuGet. :P
Updated (4/30/2018): changed the link per guidance from @JeroenWiertPluimers.
Not that I am aware of.
However, the .NET builtin Version class is perfectly happy to parse a version number compliant with the semantic versioning specification linked to in your question. It will return an object whose value for the Revision number is -1.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With