Merge pull request #1443 from dotnet/anurse/fix-version-numbers
fix version number padding
This commit is contained in:
commit
c4010e6aa5
1 changed files with 3 additions and 8 deletions
|
@ -1,9 +1,4 @@
|
||||||
using System;
|
namespace Microsoft.DotNet.Cli.Build
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace Microsoft.DotNet.Cli.Build
|
|
||||||
{
|
{
|
||||||
public class BuildVersion
|
public class BuildVersion
|
||||||
{
|
{
|
||||||
|
@ -14,8 +9,8 @@ namespace Microsoft.DotNet.Cli.Build
|
||||||
public string CommitCountString => CommitCount.ToString("000000");
|
public string CommitCountString => CommitCount.ToString("000000");
|
||||||
public string ReleaseSuffix { get; set; }
|
public string ReleaseSuffix { get; set; }
|
||||||
|
|
||||||
public string SimpleVersion => $"{Major}.{Minor}.{Patch}.{CommitCount}";
|
public string SimpleVersion => $"{Major}.{Minor}.{Patch}.{CommitCountString}";
|
||||||
public string VersionSuffix => $"{ReleaseSuffix}-{CommitCount}";
|
public string VersionSuffix => $"{ReleaseSuffix}-{CommitCountString}";
|
||||||
public string NuGetVersion => $"{Major}.{Minor}.{Patch}-{VersionSuffix}";
|
public string NuGetVersion => $"{Major}.{Minor}.{Patch}-{VersionSuffix}";
|
||||||
|
|
||||||
public string GenerateMsiVersion()
|
public string GenerateMsiVersion()
|
||||||
|
|
Loading…
Reference in a new issue