From 60d1e51d0e1abe37d321459ee0a0fe7a37828323 Mon Sep 17 00:00:00 2001 From: Caelan Sayler Date: Sat, 23 Apr 2022 11:37:37 +0100 Subject: [PATCH] Fix nuget version hash to match github --- pack.ps1 | 2 +- version.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pack.ps1 b/pack.ps1 index f53e8860..ff9096f1 100644 --- a/pack.ps1 +++ b/pack.ps1 @@ -7,7 +7,7 @@ $ErrorActionPreference = "Stop" # get current git version Write-Host "Retrieving current version from nbgv" -ForegroundColor Magenta $gitVerJson = (&nbgv get-version -f json) | ConvertFrom-Json -$version = $gitVerJson.NuGetPackageVersion +$version = $gitVerJson.SemVer1 $public = $gitVerJson.PublicRelease # build nuget package diff --git a/version.json b/version.json index 21d6e068..591d367b 100644 --- a/version.json +++ b/version.json @@ -1,7 +1,7 @@ { "$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json", "version": "2.9", - "gitCommitIdShortFixedLength": 6, + "gitCommitIdShortFixedLength": 7, "publicReleaseRefSpec": [ "^refs/heads/master$" ]