From bb2aaa1de5c255c6a9b9a58159847231ca1ac14b Mon Sep 17 00:00:00 2001 From: Eastman Date: Fri, 1 Apr 2022 11:41:59 +0300 Subject: [PATCH] Validate semver 2 versions --- scripts/ValidateProjectVersionUpdated.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ValidateProjectVersionUpdated.ps1 b/scripts/ValidateProjectVersionUpdated.ps1 index e1635a5..f654389 100644 --- a/scripts/ValidateProjectVersionUpdated.ps1 +++ b/scripts/ValidateProjectVersionUpdated.ps1 @@ -40,7 +40,7 @@ $currentProjectVersion = [System.Management.Automation.SemanticVersion]"$version # API is case-sensitive $packageName = $packageName.ToLower() -$url = "https://api.nuget.org/v3/registration3/$packageName/index.json" +$url = "https://api.nuget.org/v3/registration5-gz-semver2/$packageName/index.json" # Call the NuGet API for the package and get the current published version. Try { @@ -66,4 +66,4 @@ if ($currentProjectVersion -le $currentPublishedVersion) { } else { Write-Host "Validated that the version has been updated from $currentPublishedVersion to $currentProjectVersion" -ForegroundColor Green -} \ No newline at end of file +}