Fix version badges to display Nuget Version of cli.
We started using the nuget version in rest of our build scripts. Fixes - #2099
This commit is contained in:
parent
cf616770ca
commit
8bb35349f9
2 changed files with 6 additions and 6 deletions
|
@ -44,7 +44,7 @@ namespace Microsoft.DotNet.Cli.Build
|
|||
var outputVersionSvg = c.BuildContext.Get<string>("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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue