dotnet-installer/scripts/dotnet-cli-build/Utils/BuildVersion.cs

14 lines
530 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}";
2016-05-05 02:08:47 +00:00
public string VersionSuffix => $"{CommitCountString}";
2016-02-02 18:04:50 +00:00
public string NuGetVersion => $"{Major}.{Minor}.{Patch}-{VersionSuffix}";
2016-04-07 00:45:38 +00:00
public string NetCoreAppVersion => $"{Major}.{Minor}.{Patch}-rc2-3{CommitCountString}";
public string ProductionVersion => $"{Major}.{Minor}.{Patch}";
2016-02-02 18:04:50 +00:00
}
}