dotnet-installer/build_projects/shared-build-targets-utils/Utils/BuildVersion.cs

14 lines
545 B
C#
Raw Normal View History

2016-04-22 02:18:05 +00:00
using System.Collections.Generic;
namespace Microsoft.DotNet.Cli.Build
2016-02-02 18:04:50 +00:00
{
public class BuildVersion : Version
2016-02-02 18:04:50 +00:00
{
2016-02-16 22:02:50 +00:00
public string SimpleVersion => $"{Major}.{Minor}.{Patch}.{CommitCountString}";
public string VersionSuffix => $"{ReleaseSuffix}-{CommitCountString}";
2016-02-02 18:04:50 +00:00
public string NuGetVersion => $"{Major}.{Minor}.{Patch}-{VersionSuffix}";
public string NetCoreAppVersion => $"{Major}.{Minor}.{Patch}-rc3-{CommitCountString}";
public string ProductionVersion => $"{Major}.{Minor}.{Patch}";
2016-02-02 18:04:50 +00:00
}
}