SemanticVersion strips Revision from System.Version - is this known/expected? #12331
Replies: 1 comment 1 reply
-
@brandonh-msft NuGet has another type, |
Beta Was this translation helpful? Give feedback.
-
@brandonh-msft NuGet has another type, |
Beta Was this translation helpful? Give feedback.
-
I'm starting to use
SemanticVersion
to index/parse/process some versions we're getting from DLLs, etc. which are of this format. However, I also have versions which are of the typical System.Version format (major.minor.build.revision
) and also see thatSemanticVersion
has a constructor which takesSystem.Version
in so I thought "great, I'll just centralize aroundSemanticVersion
, then".To my dismay, however, when you take a
System.Version
and create aSemanticVersion
from it, you completely lose the Revision number. Is this known/expected? I would've at least thought we'd keep it as a Release label, etc.Beta Was this translation helpful? Give feedback.
All reactions