Skip to content

Commit 6a9a6e6

Browse files
committed
hopefully standardise version cmd
1 parent c5ab883 commit 6a9a6e6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Program.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ static async Task Build(BuildArguments buildCommandArgs, ILoggerFactory loggerFa
8787

8888
public static string GetVersionString()
8989
{
90-
return ThisAssembly.Git.SemVer.Major + "." + ThisAssembly.Git.SemVer.Minor + "." + ThisAssembly.Git.SemVer.Patch + "+" + ThisAssembly.Git.Commit;
90+
// If the current commit has a tag, this is just that tag.
91+
// Otherwise, {closed_tag}-{num_commits}-g{current_commit_hash_short}
92+
return ThisAssembly.Git.Tag;
9193
}
9294

9395
}

0 commit comments

Comments
 (0)