Step one of introducing a flag to drop the suffix out of our build versions.

This commit is contained in:
Livar Cunha 2017-02-08 14:31:07 -08:00
parent eebd77efe3
commit 35fc8c1d0e
10 changed files with 31 additions and 58 deletions

View file

@ -1,13 +0,0 @@
using System.Collections.Generic;
namespace Microsoft.DotNet.Cli.Build
{
public class BuildVersion : Version
{
public string SimpleVersion => $"{Major}.{Minor}.{Patch}.{CommitCountString}";
public string VersionSuffix => $"{ReleaseSuffix}-{CommitCountString}";
public string NuGetVersion => $"{Major}.{Minor}.{Patch}-{VersionSuffix}";
public string NetCoreAppVersion => $"{Major}.{Minor}.{Patch}-rc4-{CommitCountString}";
public string ProductionVersion => $"{Major}.{Minor}.{Patch}";
}
}

View file

@ -1,8 +1,6 @@
using System.Collections.Generic;
namespace Microsoft.DotNet.Cli.Build
{
public abstract class Version
public class Version
{
public virtual int Major { get; set; }
public virtual int Minor { get; set; }