Address PR comments
This commit is contained in:
parent
64ccab43e8
commit
483e6bd9c1
7 changed files with 17 additions and 37 deletions
|
@ -36,7 +36,12 @@ namespace Microsoft.DotNet.Cli.Build
|
|||
|
||||
protected override void LogEventsFromTextOutput(string line, MessageImportance importance)
|
||||
{
|
||||
CommitCount = line;
|
||||
var buildVersion = new BuildVersion()
|
||||
{
|
||||
CommitCount = int.Parse(line)
|
||||
};
|
||||
|
||||
CommitCount = buildVersion.CommitCountString;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,22 +0,0 @@
|
|||
// 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 Microsoft.Build.Framework;
|
||||
using Microsoft.Build.Utilities;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Microsoft.DotNet.Cli.Build
|
||||
{
|
||||
public class GetVersionBadgeMoniker : Task
|
||||
{
|
||||
[Output]
|
||||
public string VersionBadgeMoniker { get; set; }
|
||||
|
||||
public override bool Execute()
|
||||
{
|
||||
VersionBadgeMoniker = Monikers.GetBadgeMoniker();
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue