Replies: 1 comment 1 reply
-
I'm not hundret percentage sure what you like to achive but maybe this helps you: assembly-versioning-scheme: MajorMinorPatchTag
assembly-file-versioning-scheme: MajorMinorPatchTag
assembly-informational-format: '{MajorMinorPatch}+{Sha}'
... |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am trying to override the informational version to no longer include the branch information but still include the SHA information. For this I am trying to set it using the following setting:
This works fine for pre-release version where build metadata is emitted:
6.0.0-alpha+5.Sha.7d1bd...
But when building the actual release version
BuildMetaData
isnull
and thus the informational version produced is6.0.0-alpha+.Sha.7d1bd...
, which is not a valid semantic version as the build metdata should start with a letter/digit. The version I would like to end up in this case does not start with a.
:6.0.0-alpha+Sha.7d1bd...
.I know of
??
but that does not help in this case as I want the opposite behavior printing the right value if the left side is not-null, an empty string otherwise. With a ternary like operator it could solve it like this:Is there a way to achieve this with the current variable formatting functionality?
Kind regards
Beta Was this translation helpful? Give feedback.
All reactions