14 lines
554 B
C#
14 lines
554 B
C#
// Copyright (c) .NET Foundation and contributors. All rights reserved.
|
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
|
|
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}";
|
|
}
|
|
}
|