From 8bb35349f9d4ae12f698adc56c083c87d33ef7dd Mon Sep 17 00:00:00 2001 From: Sridhar Periyasamy Date: Mon, 28 Mar 2016 17:51:36 -0700 Subject: [PATCH] Fix version badges to display Nuget Version of cli. We started using the nuget version in rest of our build scripts. Fixes - #2099 --- resources/images/version_badge.svg | 10 +++++----- scripts/dotnet-cli-build/PackageTargets.cs | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/resources/images/version_badge.svg b/resources/images/version_badge.svg index 2f5c36631..22c125cbd 100644 --- a/resources/images/version_badge.svg +++ b/resources/images/version_badge.svg @@ -1,16 +1,16 @@ - + - + - + version version - ver_number - ver_number + ver_number + ver_number diff --git a/scripts/dotnet-cli-build/PackageTargets.cs b/scripts/dotnet-cli-build/PackageTargets.cs index 16203b303..d4e532da4 100644 --- a/scripts/dotnet-cli-build/PackageTargets.cs +++ b/scripts/dotnet-cli-build/PackageTargets.cs @@ -44,7 +44,7 @@ namespace Microsoft.DotNet.Cli.Build var outputVersionSvg = c.BuildContext.Get("VersionBadge"); var versionSvgContent = File.ReadAllText(versionSvg); - versionSvgContent = versionSvgContent.Replace("ver_number", buildVersion.SimpleVersion); + versionSvgContent = versionSvgContent.Replace("ver_number", buildVersion.NuGetVersion); File.WriteAllText(outputVersionSvg, versionSvgContent); return c.Success();