Address PR comments

This commit is contained in:
Justin Goshi 2017-02-10 14:13:44 -08:00
parent 64ccab43e8
commit 483e6bd9c1
7 changed files with 17 additions and 37 deletions

View file

@ -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;
}
}
}

View file

@ -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;
}
}
}