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 +}